Package org.lwjgl.vulkan
Class VkStencilOpState
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Structure specifying stencil operation state.
Valid Usage (Implicit)
failOp
must be a validVkStencilOp
valuepassOp
must be a validVkStencilOp
valuedepthFailOp
must be a validVkStencilOp
valuecompareOp
must be a validVkCompareOp
value
See Also
VkPipelineDepthStencilStateCreateInfo
Layout
struct VkStencilOpState {
VkStencilOp failOp()
;
VkStencilOp passOp()
;
VkStencilOp depthFailOp()
;
VkCompareOp compareOp()
;
uint32_t compareMask()
;
uint32_t writeMask()
;
uint32_t reference()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkStencilOpState
(ByteBuffer container) Creates aVkStencilOpState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkStencilOpState
calloc()
Returns a newVkStencilOpState
instance allocated withmemCalloc
.static VkStencilOpState.Buffer
calloc
(int capacity) Returns a newVkStencilOpState.Buffer
instance allocated withmemCalloc
.static VkStencilOpState.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkStencilOpState
calloc
(MemoryStack stack) Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkStencilOpState
Deprecated.static VkStencilOpState.Buffer
callocStack
(int capacity) Deprecated.static VkStencilOpState.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkStencilOpState
callocStack
(MemoryStack stack) Deprecated.int
selects the bits of the unsigned integer stencil values participating in the stencil test.compareMask
(int value) Sets the specified value to thecompareMask()
field.int
aVkCompareOp
value specifying the comparison operator used in the stencil test.compareOp
(int value) Sets the specified value to thecompareOp()
field.static VkStencilOpState
create()
Returns a newVkStencilOpState
instance allocated withBufferUtils
.static VkStencilOpState.Buffer
create
(int capacity) Returns a newVkStencilOpState.Buffer
instance allocated withBufferUtils
.static VkStencilOpState
create
(long address) Returns a newVkStencilOpState
instance for the specified memory address.static VkStencilOpState.Buffer
create
(long address, int capacity) Create aVkStencilOpState.Buffer
instance at the specified memory.static VkStencilOpState
createSafe
(long address) static VkStencilOpState.Buffer
createSafe
(long address, int capacity) int
aVkStencilOp
value specifying the action performed on samples that pass the stencil test and fail the depth test.depthFailOp
(int value) Sets the specified value to thedepthFailOp()
field.int
failOp()
aVkStencilOp
value specifying the action performed on samples that fail the stencil test.failOp
(int value) Sets the specified value to thefailOp()
field.static VkStencilOpState
malloc()
Returns a newVkStencilOpState
instance allocated withmemAlloc
.static VkStencilOpState.Buffer
malloc
(int capacity) Returns a newVkStencilOpState.Buffer
instance allocated withmemAlloc
.static VkStencilOpState.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.static VkStencilOpState
malloc
(MemoryStack stack) Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
.static VkStencilOpState
Deprecated.static VkStencilOpState.Buffer
mallocStack
(int capacity) Deprecated.static VkStencilOpState.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkStencilOpState
mallocStack
(MemoryStack stack) Deprecated.static int
ncompareMask
(long struct) Unsafe version ofcompareMask()
.static void
ncompareMask
(long struct, int value) Unsafe version ofcompareMask
.static int
ncompareOp
(long struct) Unsafe version ofcompareOp()
.static void
ncompareOp
(long struct, int value) Unsafe version ofcompareOp
.static int
ndepthFailOp
(long struct) Unsafe version ofdepthFailOp()
.static void
ndepthFailOp
(long struct, int value) Unsafe version ofdepthFailOp
.static int
nfailOp
(long struct) Unsafe version offailOp()
.static void
nfailOp
(long struct, int value) Unsafe version offailOp
.static int
npassOp
(long struct) Unsafe version ofpassOp()
.static void
npassOp
(long struct, int value) Unsafe version ofpassOp
.static int
nreference
(long struct) Unsafe version ofreference()
.static void
nreference
(long struct, int value) Unsafe version ofreference
.static int
nwriteMask
(long struct) Unsafe version ofwriteMask()
.static void
nwriteMask
(long struct, int value) Unsafe version ofwriteMask
.int
passOp()
aVkStencilOp
value specifying the action performed on samples that pass both the depth and stencil tests.passOp
(int value) Sets the specified value to thepassOp()
field.int
an integer stencil reference value that is used in the unsigned stencil comparison.reference
(int value) Sets the specified value to thereference()
field.set
(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference) Initializes this struct with the specified values.set
(VkStencilOpState src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.writeMask
(int value) Sets the specified value to thewriteMask()
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FAILOP
public static final int FAILOPThe struct member offsets. -
PASSOP
public static final int PASSOPThe struct member offsets. -
DEPTHFAILOP
public static final int DEPTHFAILOPThe struct member offsets. -
COMPAREOP
public static final int COMPAREOPThe struct member offsets. -
COMPAREMASK
public static final int COMPAREMASKThe struct member offsets. -
WRITEMASK
public static final int WRITEMASKThe struct member offsets. -
REFERENCE
public static final int REFERENCEThe struct member offsets.
-
-
Constructor Details
-
VkStencilOpState
Creates aVkStencilOpState
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkStencilOpState>
-
failOp
public int failOp()aVkStencilOp
value specifying the action performed on samples that fail the stencil test. -
passOp
public int passOp()aVkStencilOp
value specifying the action performed on samples that pass both the depth and stencil tests. -
depthFailOp
public int depthFailOp()aVkStencilOp
value specifying the action performed on samples that pass the stencil test and fail the depth test. -
compareOp
public int compareOp()aVkCompareOp
value specifying the comparison operator used in the stencil test. -
compareMask
public int compareMask()selects the bits of the unsigned integer stencil values participating in the stencil test. -
writeMask
public int writeMask()selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment. -
reference
public int reference()an integer stencil reference value that is used in the unsigned stencil comparison. -
failOp
Sets the specified value to thefailOp()
field. -
passOp
Sets the specified value to thepassOp()
field. -
depthFailOp
Sets the specified value to thedepthFailOp()
field. -
compareOp
Sets the specified value to thecompareOp()
field. -
compareMask
Sets the specified value to thecompareMask()
field. -
writeMask
Sets the specified value to thewriteMask()
field. -
reference
Sets the specified value to thereference()
field. -
set
public VkStencilOpState set(int failOp, int passOp, int depthFailOp, int compareOp, int compareMask, int writeMask, int reference) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkStencilOpState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkStencilOpState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkStencilOpState
instance allocated withBufferUtils
. -
create
Returns a newVkStencilOpState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkStencilOpState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkStencilOpState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkStencilOpState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkStencilOpState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nfailOp
public static int nfailOp(long struct) Unsafe version offailOp()
. -
npassOp
public static int npassOp(long struct) Unsafe version ofpassOp()
. -
ndepthFailOp
public static int ndepthFailOp(long struct) Unsafe version ofdepthFailOp()
. -
ncompareOp
public static int ncompareOp(long struct) Unsafe version ofcompareOp()
. -
ncompareMask
public static int ncompareMask(long struct) Unsafe version ofcompareMask()
. -
nwriteMask
public static int nwriteMask(long struct) Unsafe version ofwriteMask()
. -
nreference
public static int nreference(long struct) Unsafe version ofreference()
. -
nfailOp
public static void nfailOp(long struct, int value) Unsafe version offailOp
. -
npassOp
public static void npassOp(long struct, int value) Unsafe version ofpassOp
. -
ndepthFailOp
public static void ndepthFailOp(long struct, int value) Unsafe version ofdepthFailOp
. -
ncompareOp
public static void ncompareOp(long struct, int value) Unsafe version ofcompareOp
. -
ncompareMask
public static void ncompareMask(long struct, int value) Unsafe version ofcompareMask
. -
nwriteMask
public static void nwriteMask(long struct, int value) Unsafe version ofwriteMask
. -
nreference
public static void nreference(long struct, int value) Unsafe version ofreference
.
-