public class VkClearDepthStencilValue
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VK_EXT_depth_range_unrestricted extension is enabled depth must be between 0.0 and 1.0, inclusiveVkClearValue, CmdClearDepthStencilImage
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.
struct VkClearDepthStencilValue {
float depth;
uint32_t stencil;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkClearDepthStencilValue.Buffer
An array of
VkClearDepthStencilValue structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEPTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STENCIL
The struct member offsets.
|
| Constructor and Description |
|---|
VkClearDepthStencilValue(java.nio.ByteBuffer container)
Creates a
VkClearDepthStencilValue instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkClearDepthStencilValue |
calloc()
Returns a new
VkClearDepthStencilValue instance allocated with memCalloc. |
static VkClearDepthStencilValue.Buffer |
calloc(int capacity)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated with memCalloc. |
static VkClearDepthStencilValue |
callocStack()
Returns a new
VkClearDepthStencilValue instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkClearDepthStencilValue.Buffer |
callocStack(int capacity)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkClearDepthStencilValue.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkClearDepthStencilValue |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearDepthStencilValue instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkClearDepthStencilValue |
create()
Returns a new
VkClearDepthStencilValue instance allocated with BufferUtils. |
static VkClearDepthStencilValue.Buffer |
create(int capacity)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated with BufferUtils. |
static VkClearDepthStencilValue |
create(long address)
Returns a new
VkClearDepthStencilValue instance for the specified memory address. |
static VkClearDepthStencilValue.Buffer |
create(long address,
int capacity)
Create a
VkClearDepthStencilValue.Buffer instance at the specified memory. |
static VkClearDepthStencilValue |
createSafe(long address)
|
static VkClearDepthStencilValue.Buffer |
createSafe(long address,
int capacity)
|
float |
depth()
Returns the value of the
depth field. |
VkClearDepthStencilValue |
depth(float value)
Sets the specified value to the
depth field. |
static VkClearDepthStencilValue |
malloc()
Returns a new
VkClearDepthStencilValue instance allocated with memAlloc. |
static VkClearDepthStencilValue.Buffer |
malloc(int capacity)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated with memAlloc. |
static VkClearDepthStencilValue |
mallocStack()
Returns a new
VkClearDepthStencilValue instance allocated on the thread-local MemoryStack. |
static VkClearDepthStencilValue.Buffer |
mallocStack(int capacity)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated on the thread-local MemoryStack. |
static VkClearDepthStencilValue.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearDepthStencilValue.Buffer instance allocated on the specified MemoryStack. |
static VkClearDepthStencilValue |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearDepthStencilValue instance allocated on the specified MemoryStack. |
static float |
ndepth(long struct)
Unsafe version of
depth(). |
static void |
ndepth(long struct,
float value)
Unsafe version of
depth. |
static int |
nstencil(long struct)
Unsafe version of
stencil(). |
static void |
nstencil(long struct,
int value)
Unsafe version of
stencil. |
VkClearDepthStencilValue |
set(float depth,
int stencil)
Initializes this struct with the specified values.
|
VkClearDepthStencilValue |
set(VkClearDepthStencilValue src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stencil()
Returns the value of the
stencil field. |
VkClearDepthStencilValue |
stencil(int value)
Sets the specified value to the
stencil field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DEPTH
public static final int STENCIL
public VkClearDepthStencilValue(java.nio.ByteBuffer container)
VkClearDepthStencilValue instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float depth()
depth field.public int stencil()
stencil field.public VkClearDepthStencilValue depth(float value)
depth field.public VkClearDepthStencilValue stencil(int value)
stencil field.public VkClearDepthStencilValue set(float depth, int stencil)
public VkClearDepthStencilValue set(VkClearDepthStencilValue src)
src - the source structpublic static VkClearDepthStencilValue malloc()
VkClearDepthStencilValue instance allocated with memAlloc. The instance must be explicitly freed.public static VkClearDepthStencilValue calloc()
VkClearDepthStencilValue instance allocated with memCalloc. The instance must be explicitly freed.public static VkClearDepthStencilValue create()
VkClearDepthStencilValue instance allocated with BufferUtils.public static VkClearDepthStencilValue create(long address)
VkClearDepthStencilValue instance for the specified memory address.@Nullable public static VkClearDepthStencilValue createSafe(long address)
public static VkClearDepthStencilValue.Buffer malloc(int capacity)
VkClearDepthStencilValue.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer calloc(int capacity)
VkClearDepthStencilValue.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer create(int capacity)
VkClearDepthStencilValue.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer create(long address, int capacity)
VkClearDepthStencilValue.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkClearDepthStencilValue.Buffer createSafe(long address, int capacity)
public static VkClearDepthStencilValue mallocStack()
VkClearDepthStencilValue instance allocated on the thread-local MemoryStack.public static VkClearDepthStencilValue callocStack()
VkClearDepthStencilValue instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkClearDepthStencilValue mallocStack(org.lwjgl.system.MemoryStack stack)
VkClearDepthStencilValue instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkClearDepthStencilValue callocStack(org.lwjgl.system.MemoryStack stack)
VkClearDepthStencilValue instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkClearDepthStencilValue.Buffer mallocStack(int capacity)
VkClearDepthStencilValue.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer callocStack(int capacity)
VkClearDepthStencilValue.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkClearDepthStencilValue.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkClearDepthStencilValue.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkClearDepthStencilValue.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static float ndepth(long struct)
depth().public static int nstencil(long struct)
stencil().public static void ndepth(long struct,
float value)
depth.public static void nstencil(long struct,
int value)
stencil.Copyright LWJGL. All Rights Reserved. License terms.