public class VkStencilOpState
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
failOp must be a valid VkStencilOp valuepassOp must be a valid VkStencilOp valuedepthFailOp must be a valid VkStencilOp valuecompareOp must be a valid VkCompareOp valueVkPipelineDepthStencilStateCreateInfo
failOp – a VkStencilOp value specifying the action performed on samples that fail the stencil test.passOp – a VkStencilOp value specifying the action performed on samples that pass both the depth and stencil tests.depthFailOp – a VkStencilOp value specifying the action performed on samples that pass the stencil test and fail the depth test.compareOp – a VkCompareOp value specifying the comparison operator used in the stencil test.compareMask – selects the bits of the unsigned integer stencil values participating in the stencil test.writeMask – selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.reference – an integer reference value that is used in the unsigned stencil comparison.
struct VkStencilOpState {
VkStencilOp failOp;
VkStencilOp passOp;
VkStencilOp depthFailOp;
VkCompareOp compareOp;
uint32_t compareMask;
uint32_t writeMask;
uint32_t reference;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkStencilOpState.Buffer
An array of
VkStencilOpState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPAREMASK
The struct member offsets.
|
static int |
COMPAREOP
The struct member offsets.
|
static int |
DEPTHFAILOP
The struct member offsets.
|
static int |
FAILOP
The struct member offsets.
|
static int |
PASSOP
The struct member offsets.
|
static int |
REFERENCE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WRITEMASK
The struct member offsets.
|
| Constructor and Description |
|---|
VkStencilOpState(java.nio.ByteBuffer container)
Creates a
VkStencilOpState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkStencilOpState |
calloc()
Returns a new
VkStencilOpState instance allocated with memCalloc. |
static VkStencilOpState.Buffer |
calloc(int capacity)
Returns a new
VkStencilOpState.Buffer instance allocated with memCalloc. |
static VkStencilOpState |
callocStack()
Returns a new
VkStencilOpState instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkStencilOpState.Buffer |
callocStack(int capacity)
Returns a new
VkStencilOpState.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkStencilOpState.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkStencilOpState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkStencilOpState |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkStencilOpState instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
compareMask()
Returns the value of the
compareMask field. |
VkStencilOpState |
compareMask(int value)
Sets the specified value to the
compareMask field. |
int |
compareOp()
Returns the value of the
compareOp field. |
VkStencilOpState |
compareOp(int value)
Sets the specified value to the
compareOp field. |
static VkStencilOpState |
create()
Returns a new
VkStencilOpState instance allocated with BufferUtils. |
static VkStencilOpState.Buffer |
create(int capacity)
Returns a new
VkStencilOpState.Buffer instance allocated with BufferUtils. |
static VkStencilOpState |
create(long address)
Returns a new
VkStencilOpState instance for the specified memory address. |
static VkStencilOpState.Buffer |
create(long address,
int capacity)
Create a
VkStencilOpState.Buffer instance at the specified memory. |
static VkStencilOpState |
createSafe(long address)
|
static VkStencilOpState.Buffer |
createSafe(long address,
int capacity)
|
int |
depthFailOp()
Returns the value of the
depthFailOp field. |
VkStencilOpState |
depthFailOp(int value)
Sets the specified value to the
depthFailOp field. |
int |
failOp()
Returns the value of the
failOp field. |
VkStencilOpState |
failOp(int value)
Sets the specified value to the
failOp field. |
static VkStencilOpState |
malloc()
Returns a new
VkStencilOpState instance allocated with memAlloc. |
static VkStencilOpState.Buffer |
malloc(int capacity)
Returns a new
VkStencilOpState.Buffer instance allocated with memAlloc. |
static VkStencilOpState |
mallocStack()
Returns a new
VkStencilOpState instance allocated on the thread-local MemoryStack. |
static VkStencilOpState.Buffer |
mallocStack(int capacity)
Returns a new
VkStencilOpState.Buffer instance allocated on the thread-local MemoryStack. |
static VkStencilOpState.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkStencilOpState.Buffer instance allocated on the specified MemoryStack. |
static VkStencilOpState |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkStencilOpState instance allocated on the specified MemoryStack. |
static int |
ncompareMask(long struct)
Unsafe version of
compareMask(). |
static void |
ncompareMask(long struct,
int value)
Unsafe version of
compareMask. |
static int |
ncompareOp(long struct)
Unsafe version of
compareOp(). |
static void |
ncompareOp(long struct,
int value)
Unsafe version of
compareOp. |
static int |
ndepthFailOp(long struct)
Unsafe version of
depthFailOp(). |
static void |
ndepthFailOp(long struct,
int value)
Unsafe version of
depthFailOp. |
static int |
nfailOp(long struct)
Unsafe version of
failOp(). |
static void |
nfailOp(long struct,
int value)
Unsafe version of
failOp. |
static int |
npassOp(long struct)
Unsafe version of
passOp(). |
static void |
npassOp(long struct,
int value)
Unsafe version of
passOp. |
static int |
nreference(long struct)
Unsafe version of
reference(). |
static void |
nreference(long struct,
int value)
Unsafe version of
reference. |
static int |
nwriteMask(long struct)
Unsafe version of
writeMask(). |
static void |
nwriteMask(long struct,
int value)
Unsafe version of
writeMask. |
int |
passOp()
Returns the value of the
passOp field. |
VkStencilOpState |
passOp(int value)
Sets the specified value to the
passOp field. |
int |
reference()
Returns the value of the
reference field. |
VkStencilOpState |
reference(int value)
Sets the specified value to the
reference field. |
VkStencilOpState |
set(int failOp,
int passOp,
int depthFailOp,
int compareOp,
int compareMask,
int writeMask,
int reference)
Initializes this struct with the specified values.
|
VkStencilOpState |
set(VkStencilOpState src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
writeMask()
Returns the value of the
writeMask field. |
VkStencilOpState |
writeMask(int value)
Sets the specified value to the
writeMask field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FAILOP
public static final int PASSOP
public static final int DEPTHFAILOP
public static final int COMPAREOP
public static final int COMPAREMASK
public static final int WRITEMASK
public static final int REFERENCE
public VkStencilOpState(java.nio.ByteBuffer container)
VkStencilOpState 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 int failOp()
failOp field.public int passOp()
passOp field.public int depthFailOp()
depthFailOp field.public int compareOp()
compareOp field.public int compareMask()
compareMask field.public int writeMask()
writeMask field.public int reference()
reference field.public VkStencilOpState failOp(int value)
failOp field.public VkStencilOpState passOp(int value)
passOp field.public VkStencilOpState depthFailOp(int value)
depthFailOp field.public VkStencilOpState compareOp(int value)
compareOp field.public VkStencilOpState compareMask(int value)
compareMask field.public VkStencilOpState writeMask(int value)
writeMask field.public VkStencilOpState reference(int value)
reference field.public VkStencilOpState set(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference)
public VkStencilOpState set(VkStencilOpState src)
src - the source structpublic static VkStencilOpState malloc()
VkStencilOpState instance allocated with memAlloc. The instance must be explicitly freed.public static VkStencilOpState calloc()
VkStencilOpState instance allocated with memCalloc. The instance must be explicitly freed.public static VkStencilOpState create()
VkStencilOpState instance allocated with BufferUtils.public static VkStencilOpState create(long address)
VkStencilOpState instance for the specified memory address.@Nullable public static VkStencilOpState createSafe(long address)
public static VkStencilOpState.Buffer malloc(int capacity)
VkStencilOpState.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkStencilOpState.Buffer calloc(int capacity)
VkStencilOpState.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkStencilOpState.Buffer create(int capacity)
VkStencilOpState.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkStencilOpState.Buffer create(long address, int capacity)
VkStencilOpState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkStencilOpState.Buffer createSafe(long address, int capacity)
public static VkStencilOpState mallocStack()
VkStencilOpState instance allocated on the thread-local MemoryStack.public static VkStencilOpState callocStack()
VkStencilOpState instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkStencilOpState mallocStack(org.lwjgl.system.MemoryStack stack)
VkStencilOpState instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkStencilOpState callocStack(org.lwjgl.system.MemoryStack stack)
VkStencilOpState instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkStencilOpState.Buffer mallocStack(int capacity)
VkStencilOpState.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkStencilOpState.Buffer callocStack(int capacity)
VkStencilOpState.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkStencilOpState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkStencilOpState.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkStencilOpState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkStencilOpState.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 int nfailOp(long struct)
failOp().public static int npassOp(long struct)
passOp().public static int ndepthFailOp(long struct)
depthFailOp().public static int ncompareOp(long struct)
compareOp().public static int ncompareMask(long struct)
compareMask().public static int nwriteMask(long struct)
writeMask().public static int nreference(long struct)
reference().public static void nfailOp(long struct,
int value)
failOp.public static void npassOp(long struct,
int value)
passOp.public static void ndepthFailOp(long struct,
int value)
depthFailOp.public static void ncompareOp(long struct,
int value)
compareOp.public static void ncompareMask(long struct,
int value)
compareMask.public static void nwriteMask(long struct,
int value)
writeMask.public static void nreference(long struct,
int value)
reference.Copyright LWJGL. All Rights Reserved. License terms.