Package org.lwjgl.vulkan
Class VkClearDepthStencilValue
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkClearDepthStencilValue
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkClearDepthStencilValue extends Struct
Khronos Reference Page
Vulkan SpecificationSpecifies the depth and stencil clear values to use when clearing a depth/stencil image or attachment.
Member documentation
depth– the clear value for the depth aspect of the depth/stencil attachment. It is a floating-point value which is automatically converted to the attachment’s format.stencil– the clear value for the stencil aspect of the depth/stencil attachment. It is a 32-bit integer value which is converted to the attachment’s format by taking the appropriate number of LSBs.
Layout
struct VkClearDepthStencilValue { float depth; uint32_t stencil; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkClearDepthStencilValue.BufferAn array ofVkClearDepthStencilValuestructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkClearDepthStencilValue(java.nio.ByteBuffer container)Creates aVkClearDepthStencilValueinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkClearDepthStencilValuecalloc()Returns a newVkClearDepthStencilValueinstance allocated withmemCalloc.static VkClearDepthStencilValue.Buffercalloc(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemCalloc.static VkClearDepthStencilValuecallocStack()Returns a newVkClearDepthStencilValueinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValue.BuffercallocStack(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValue.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValuecallocStack(MemoryStack stack)Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValuecreate()Returns a newVkClearDepthStencilValueinstance allocated withBufferUtils.static VkClearDepthStencilValue.Buffercreate(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated withBufferUtils.static VkClearDepthStencilValuecreate(long address)Returns a newVkClearDepthStencilValueinstance for the specified memory address ornullif the address isNULL.static VkClearDepthStencilValue.Buffercreate(long address, int capacity)Create aVkClearDepthStencilValue.Bufferinstance at the specified memory.floatdepth()Returns the value of thedepthfield.VkClearDepthStencilValuedepth(float value)Sets the specified value to thedepthfield.static VkClearDepthStencilValuemalloc()Returns a newVkClearDepthStencilValueinstance allocated withmemAlloc.static VkClearDepthStencilValue.Buffermalloc(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemAlloc.static VkClearDepthStencilValuemallocStack()Returns a newVkClearDepthStencilValueinstance allocated on the thread-localMemoryStack.static VkClearDepthStencilValue.BuffermallocStack(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the thread-localMemoryStack.static VkClearDepthStencilValue.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStack.static VkClearDepthStencilValuemallocStack(MemoryStack stack)Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStack.VkClearDepthStencilValuenset(long struct)Unsafe version ofset.VkClearDepthStencilValueset(float depth, int stencil)Initializes this struct with the specified values.VkClearDepthStencilValueset(VkClearDepthStencilValue src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intstencil()Returns the value of thestencilfield.VkClearDepthStencilValuestencil(int value)Sets the specified value to thestencilfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkClearDepthStencilValue
public VkClearDepthStencilValue(java.nio.ByteBuffer container)
Creates aVkClearDepthStencilValueinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
depth
public float depth()
Returns the value of thedepthfield.
-
stencil
public int stencil()
Returns the value of thestencilfield.
-
depth
public VkClearDepthStencilValue depth(float value)
Sets the specified value to thedepthfield.
-
stencil
public VkClearDepthStencilValue stencil(int value)
Sets the specified value to thestencilfield.
-
set
public VkClearDepthStencilValue set(float depth, int stencil)
Initializes this struct with the specified values.
-
nset
public VkClearDepthStencilValue nset(long struct)
Unsafe version ofset.
-
set
public VkClearDepthStencilValue set(VkClearDepthStencilValue src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkClearDepthStencilValue malloc()
Returns a newVkClearDepthStencilValueinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkClearDepthStencilValue calloc()
Returns a newVkClearDepthStencilValueinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkClearDepthStencilValue create()
Returns a newVkClearDepthStencilValueinstance allocated withBufferUtils.
-
create
public static VkClearDepthStencilValue create(long address)
Returns a newVkClearDepthStencilValueinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkClearDepthStencilValue.Buffer malloc(int capacity)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkClearDepthStencilValue.Buffer calloc(int capacity)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkClearDepthStencilValue.Buffer create(int capacity)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkClearDepthStencilValue.Buffer create(long address, int capacity)
Create aVkClearDepthStencilValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkClearDepthStencilValue mallocStack()
Returns a newVkClearDepthStencilValueinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkClearDepthStencilValue callocStack()
Returns a newVkClearDepthStencilValueinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkClearDepthStencilValue mallocStack(MemoryStack stack)
Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkClearDepthStencilValue callocStack(MemoryStack stack)
Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkClearDepthStencilValue.Buffer mallocStack(int capacity)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkClearDepthStencilValue.Buffer callocStack(int capacity)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkClearDepthStencilValue.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkClearDepthStencilValue.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-