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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkClearDepthStencilValue extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a clear depth stencil value.Valid Usage
- Unless the
VK_EXT_depth_range_unrestrictedextension is enableddepthmust be between0.0and1.0, inclusive
See Also
VkClearValue,CmdClearDepthStencilImageLayout
struct VkClearDepthStencilValue { floatdepth(); uint32_tstencil(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkClearDepthStencilValue.BufferAn array ofVkClearDepthStencilValuestructs.
-
Constructor Summary
Constructors Constructor 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 Deprecated Methods Modifier and Type Method Description static VkClearDepthStencilValuecalloc()Returns a newVkClearDepthStencilValueinstance allocated withmemCalloc.static VkClearDepthStencilValue.Buffercalloc(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemCalloc.static VkClearDepthStencilValue.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValuecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearDepthStencilValuecallocStack()Deprecated.static VkClearDepthStencilValue.BuffercallocStack(int capacity)Deprecated.static VkClearDepthStencilValue.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkClearDepthStencilValuecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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.static VkClearDepthStencilValue.Buffercreate(long address, int capacity)Create aVkClearDepthStencilValue.Bufferinstance at the specified memory.static VkClearDepthStencilValuecreateSafe(long address)static VkClearDepthStencilValue.BuffercreateSafe(long address, int capacity)floatdepth()the clear value for the depth aspect of the depth/stencil attachment.VkClearDepthStencilValuedepth(float value)Sets the specified value to thedepth()field.static VkClearDepthStencilValuemalloc()Returns a newVkClearDepthStencilValueinstance allocated withmemAlloc.static VkClearDepthStencilValue.Buffermalloc(int capacity)Returns a newVkClearDepthStencilValue.Bufferinstance allocated withmemAlloc.static VkClearDepthStencilValue.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStack.static VkClearDepthStencilValuemalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStack.static VkClearDepthStencilValuemallocStack()Deprecated.static VkClearDepthStencilValue.BuffermallocStack(int capacity)Deprecated.static VkClearDepthStencilValue.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkClearDepthStencilValuemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatndepth(long struct)Unsafe version ofdepth().static voidndepth(long struct, float value)Unsafe version ofdepth.static intnstencil(long struct)Unsafe version ofstencil().static voidnstencil(long struct, int value)Unsafe version ofstencil.VkClearDepthStencilValueset(float depth, int stencil)Initializes this struct with the specified values.VkClearDepthStencilValueset(VkClearDepthStencilValue src)Copies the specified struct data to this struct.intsizeof()intstencil()the clear value for the stencil aspect of the depth/stencil attachment.VkClearDepthStencilValuestencil(int value)Sets the specified value to thestencil()field.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
depth
public float 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
public int 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.
-
depth
public VkClearDepthStencilValue depth(float value)
Sets the specified value to thedepth()field.
-
stencil
public VkClearDepthStencilValue stencil(int value)
Sets the specified value to thestencil()field.
-
set
public VkClearDepthStencilValue set(float depth, int stencil)
Initializes this struct with the specified values.
-
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.
-
createSafe
@Nullable public static VkClearDepthStencilValue createSafe(long address)
-
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
-
createSafe
@Nullable public static VkClearDepthStencilValue.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkClearDepthStencilValue mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearDepthStencilValue callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearDepthStencilValue mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearDepthStencilValue callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearDepthStencilValue.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearDepthStencilValue.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearDepthStencilValue.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearDepthStencilValue.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkClearDepthStencilValue malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkClearDepthStencilValue calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkClearDepthStencilValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkClearDepthStencilValue.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkClearDepthStencilValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkClearDepthStencilValue.Buffer calloc(int capacity, org.lwjgl.system.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
-
ndepth
public static float ndepth(long struct)
Unsafe version ofdepth().
-
nstencil
public static int nstencil(long struct)
Unsafe version ofstencil().
-
ndepth
public static void ndepth(long struct, float value)Unsafe version ofdepth.
-
nstencil
public static void nstencil(long struct, int value)Unsafe version ofstencil.
-
-