Package org.lwjgl.vulkan
Class VkStencilOpState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkStencilOpState
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkStencilOpState extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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
Member documentation
failOp
– aVkStencilOp
value specifying the action performed on samples that fail the stencil test.passOp
– aVkStencilOp
value specifying the action performed on samples that pass both the depth and stencil tests.depthFailOp
– aVkStencilOp
value specifying the action performed on samples that pass the stencil test and fail the depth test.compareOp
– aVkCompareOp
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.
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 Modifier and Type Class Description static class
VkStencilOpState.Buffer
An array ofVkStencilOpState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COMPAREMASK
COMPAREOP
DEPTHFAILOP
FAILOP
PASSOP
REFERENCEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
WRITEMASK
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkStencilOpState(java.nio.ByteBuffer container)
Creates aVkStencilOpState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkStencilOpState
calloc()
Returns a newVkStencilOpState
instance allocated withmemCalloc
.static VkStencilOpState.Buffer
calloc(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated withmemCalloc
.static VkStencilOpState
callocStack()
Returns a newVkStencilOpState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkStencilOpState.Buffer
callocStack(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkStencilOpState.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkStencilOpState
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
compareMask()
Returns the value of thecompareMask
field.VkStencilOpState
compareMask(int value)
Sets the specified value to thecompareMask
field.int
compareOp()
Returns the value of thecompareOp
field.VkStencilOpState
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
depthFailOp()
Returns the value of thedepthFailOp
field.VkStencilOpState
depthFailOp(int value)
Sets the specified value to thedepthFailOp
field.int
failOp()
Returns the value of thefailOp
field.VkStencilOpState
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
mallocStack()
Returns a newVkStencilOpState
instance allocated on the thread-localMemoryStack
.static VkStencilOpState.Buffer
mallocStack(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated on the thread-localMemoryStack
.static VkStencilOpState.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.static VkStencilOpState
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
.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()
Returns the value of thepassOp
field.VkStencilOpState
passOp(int value)
Sets the specified value to thepassOp
field.int
reference()
Returns the value of thereference
field.VkStencilOpState
reference(int value)
Sets the specified value to thereference
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 thewriteMask
field.VkStencilOpState
writeMask(int value)
Sets the specified value to thewriteMask
field.
-
-
-
Constructor Detail
-
VkStencilOpState
public VkStencilOpState(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
failOp
public int failOp()
Returns the value of thefailOp
field.
-
passOp
public int passOp()
Returns the value of thepassOp
field.
-
depthFailOp
public int depthFailOp()
Returns the value of thedepthFailOp
field.
-
compareOp
public int compareOp()
Returns the value of thecompareOp
field.
-
compareMask
public int compareMask()
Returns the value of thecompareMask
field.
-
writeMask
public int writeMask()
Returns the value of thewriteMask
field.
-
reference
public int reference()
Returns the value of thereference
field.
-
failOp
public VkStencilOpState failOp(int value)
Sets the specified value to thefailOp
field.
-
passOp
public VkStencilOpState passOp(int value)
Sets the specified value to thepassOp
field.
-
depthFailOp
public VkStencilOpState depthFailOp(int value)
Sets the specified value to thedepthFailOp
field.
-
compareOp
public VkStencilOpState compareOp(int value)
Sets the specified value to thecompareOp
field.
-
compareMask
public VkStencilOpState compareMask(int value)
Sets the specified value to thecompareMask
field.
-
writeMask
public VkStencilOpState writeMask(int value)
Sets the specified value to thewriteMask
field.
-
reference
public VkStencilOpState reference(int value)
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
public VkStencilOpState set(VkStencilOpState src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkStencilOpState malloc()
Returns a newVkStencilOpState
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkStencilOpState calloc()
Returns a newVkStencilOpState
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkStencilOpState create()
Returns a newVkStencilOpState
instance allocated withBufferUtils
.
-
create
public static VkStencilOpState create(long address)
Returns a newVkStencilOpState
instance for the specified memory address.
-
createSafe
@Nullable public static VkStencilOpState createSafe(long address)
-
malloc
public static VkStencilOpState.Buffer malloc(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkStencilOpState.Buffer calloc(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkStencilOpState.Buffer create(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkStencilOpState.Buffer create(long address, int capacity)
Create aVkStencilOpState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkStencilOpState.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkStencilOpState mallocStack()
Returns a newVkStencilOpState
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkStencilOpState callocStack()
Returns a newVkStencilOpState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkStencilOpState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkStencilOpState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkStencilOpState.Buffer mallocStack(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkStencilOpState.Buffer callocStack(int capacity)
Returns a newVkStencilOpState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkStencilOpState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkStencilOpState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-