Package org.lwjgl.vulkan
Class VkSubpassDescriptionDepthStencilResolveKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDescriptionDepthStencilResolveKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSubpassDescriptionDepthStencilResolveKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying depth/stencil resolve operations for a subpass.Valid Usage
- If
pDepthStencilResolveAttachment
is notNULL
and does not have the valueATTACHMENT_UNUSED
,pDepthStencilAttachment
must not have the valueATTACHMENT_UNUSED
- If
pDepthStencilResolveAttachment
is notNULL
and does not have the valueATTACHMENT_UNUSED
,depthResolveMode
andstencilResolveMode
must not both beRESOLVE_MODE_NONE_KHR
- If
pDepthStencilResolveAttachment
is notNULL
and does not have the valueATTACHMENT_UNUSED
,pDepthStencilAttachment
must not have a sample count ofSAMPLE_COUNT_1_BIT
- If
pDepthStencilResolveAttachment
is notNULL
and does not have the valueATTACHMENT_UNUSED
,pDepthStencilResolveAttachment
must have a sample count ofSAMPLE_COUNT_1_BIT
- If
pDepthStencilResolveAttachment
is notNULL
and does not have the valueATTACHMENT_UNUSED
then it must have a format whose features containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
- If the
VkFormat
ofpDepthStencilResolveAttachment
has a depth component, then theVkFormat
ofpDepthStencilAttachment
must have a depth component with the same number of bits and numerical type - If the
VkFormat
ofpDepthStencilResolveAttachment
has a stencil component, then theVkFormat
ofpDepthStencilAttachment
must have a stencil component with the same number of bits and numerical type - The value of
depthResolveMode
must be one of the bits set inVkPhysicalDeviceDepthStencilResolvePropertiesKHR
::supportedDepthResolveModes
orRESOLVE_MODE_NONE_KHR
- The value of
stencilResolveMode
must be one of the bits set inVkPhysicalDeviceDepthStencilResolvePropertiesKHR
::supportedStencilResolveModes
orRESOLVE_MODE_NONE_KHR
- If the
VkFormat
ofpDepthStencilResolveAttachment
has both depth and stencil components,VkPhysicalDeviceDepthStencilResolvePropertiesKHR
::independentResolve
isFALSE
, andVkPhysicalDeviceDepthStencilResolvePropertiesKHR
::independentResolveNone
isFALSE
, then the values ofdepthResolveMode
andstencilResolveMode
must be identical - If the
VkFormat
ofpDepthStencilResolveAttachment
has both depth and stencil components,VkPhysicalDeviceDepthStencilResolvePropertiesKHR
::independentResolve
isFALSE
andVkPhysicalDeviceDepthStencilResolvePropertiesKHR
::independentResolveNone
isTRUE
, then the values ofdepthResolveMode
andstencilResolveMode
must be identical or one of them must beRESOLVE_MODE_NONE_KHR
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE_KHR
depthResolveMode
must be a validVkResolveModeFlagBitsKHR
valuestencilResolveMode
must be a validVkResolveModeFlagBitsKHR
value- If
pDepthStencilResolveAttachment
is notNULL
,pDepthStencilResolveAttachment
must be a valid pointer to a validVkAttachmentReference2KHR
structure
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.depthResolveMode
– a bitmask ofVkResolveModeFlagBitsKHR
describing the depth resolve mode.stencilResolveMode
– a bitmask ofVkResolveModeFlagBitsKHR
describing the stencil resolve mode.pDepthStencilResolveAttachment
– an optionalVkAttachmentReference
structure defining the depth/stencil resolve attachment for this subpass and its layout.
Layout
struct VkSubpassDescriptionDepthStencilResolveKHR { VkStructureType sType; void const * pNext; VkResolveModeFlagBitsKHR depthResolveMode; VkResolveModeFlagBitsKHR stencilResolveMode;
VkAttachmentReference2KHR
const * pDepthStencilResolveAttachment; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSubpassDescriptionDepthStencilResolveKHR.Buffer
An array ofVkSubpassDescriptionDepthStencilResolveKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEPTHRESOLVEMODE
PDEPTHSTENCILRESOLVEATTACHMENT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STENCILRESOLVEMODE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescriptionDepthStencilResolveKHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescriptionDepthStencilResolveKHR
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 VkSubpassDescriptionDepthStencilResolveKHR
calloc()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withmemCalloc
.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
calloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withmemCalloc
.static VkSubpassDescriptionDepthStencilResolveKHR
callocStack()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
callocStack(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR
create()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withBufferUtils
.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
create(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withBufferUtils
.static VkSubpassDescriptionDepthStencilResolveKHR
create(long address)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance for the specified memory address.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
create(long address, int capacity)
Create aVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance at the specified memory.static VkSubpassDescriptionDepthStencilResolveKHR
createSafe(long address)
static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
createSafe(long address, int capacity)
int
depthResolveMode()
Returns the value of thedepthResolveMode
field.VkSubpassDescriptionDepthStencilResolveKHR
depthResolveMode(int value)
Sets the specified value to thedepthResolveMode
field.static VkSubpassDescriptionDepthStencilResolveKHR
malloc()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withmemAlloc
.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
malloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withmemAlloc
.static VkSubpassDescriptionDepthStencilResolveKHR
mallocStack()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the thread-localMemoryStack
.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
mallocStack(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSubpassDescriptionDepthStencilResolveKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDescriptionDepthStencilResolveKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the specifiedMemoryStack
.static int
ndepthResolveMode(long struct)
Unsafe version ofdepthResolveMode()
.static void
ndepthResolveMode(long struct, int value)
Unsafe version ofdepthResolveMode
.static VkAttachmentReference2KHR
npDepthStencilResolveAttachment(long struct)
Unsafe version ofpDepthStencilResolveAttachment()
.static void
npDepthStencilResolveAttachment(long struct, VkAttachmentReference2KHR value)
Unsafe version ofpDepthStencilResolveAttachment
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nstencilResolveMode(long struct)
Unsafe version ofstencilResolveMode()
.static void
nstencilResolveMode(long struct, int value)
Unsafe version ofstencilResolveMode
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.VkAttachmentReference2KHR
pDepthStencilResolveAttachment()
Returns aVkAttachmentReference2KHR
view of the struct pointed to by thepDepthStencilResolveAttachment
field.VkSubpassDescriptionDepthStencilResolveKHR
pDepthStencilResolveAttachment(VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHR
to thepDepthStencilResolveAttachment
field.long
pNext()
Returns the value of thepNext
field.VkSubpassDescriptionDepthStencilResolveKHR
pNext(long value)
Sets the specified value to thepNext
field.VkSubpassDescriptionDepthStencilResolveKHR
set(int sType, long pNext, int depthResolveMode, int stencilResolveMode, VkAttachmentReference2KHR pDepthStencilResolveAttachment)
Initializes this struct with the specified values.VkSubpassDescriptionDepthStencilResolveKHR
set(VkSubpassDescriptionDepthStencilResolveKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
stencilResolveMode()
Returns the value of thestencilResolveMode
field.VkSubpassDescriptionDepthStencilResolveKHR
stencilResolveMode(int value)
Sets the specified value to thestencilResolveMode
field.int
sType()
Returns the value of thesType
field.VkSubpassDescriptionDepthStencilResolveKHR
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkSubpassDescriptionDepthStencilResolveKHR
public VkSubpassDescriptionDepthStencilResolveKHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescriptionDepthStencilResolveKHR
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
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
depthResolveMode
public int depthResolveMode()
Returns the value of thedepthResolveMode
field.
-
stencilResolveMode
public int stencilResolveMode()
Returns the value of thestencilResolveMode
field.
-
pDepthStencilResolveAttachment
@Nullable public VkAttachmentReference2KHR pDepthStencilResolveAttachment()
Returns aVkAttachmentReference2KHR
view of the struct pointed to by thepDepthStencilResolveAttachment
field.
-
sType
public VkSubpassDescriptionDepthStencilResolveKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSubpassDescriptionDepthStencilResolveKHR pNext(long value)
Sets the specified value to thepNext
field.
-
depthResolveMode
public VkSubpassDescriptionDepthStencilResolveKHR depthResolveMode(int value)
Sets the specified value to thedepthResolveMode
field.
-
stencilResolveMode
public VkSubpassDescriptionDepthStencilResolveKHR stencilResolveMode(int value)
Sets the specified value to thestencilResolveMode
field.
-
pDepthStencilResolveAttachment
public VkSubpassDescriptionDepthStencilResolveKHR pDepthStencilResolveAttachment(@Nullable VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHR
to thepDepthStencilResolveAttachment
field.
-
set
public VkSubpassDescriptionDepthStencilResolveKHR set(int sType, long pNext, int depthResolveMode, int stencilResolveMode, @Nullable VkAttachmentReference2KHR pDepthStencilResolveAttachment)
Initializes this struct with the specified values.
-
set
public VkSubpassDescriptionDepthStencilResolveKHR set(VkSubpassDescriptionDepthStencilResolveKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDescriptionDepthStencilResolveKHR malloc()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescriptionDepthStencilResolveKHR calloc()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR create()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated withBufferUtils
.
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR create(long address)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescriptionDepthStencilResolveKHR createSafe(long address)
-
malloc
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer malloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer calloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer create(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer create(long address, int capacity)
Create aVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSubpassDescriptionDepthStencilResolveKHR mallocStack()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR callocStack()
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescriptionDepthStencilResolveKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer mallocStack(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer callocStack(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
ndepthResolveMode
public static int ndepthResolveMode(long struct)
Unsafe version ofdepthResolveMode()
.
-
nstencilResolveMode
public static int nstencilResolveMode(long struct)
Unsafe version ofstencilResolveMode()
.
-
npDepthStencilResolveAttachment
@Nullable public static VkAttachmentReference2KHR npDepthStencilResolveAttachment(long struct)
Unsafe version ofpDepthStencilResolveAttachment()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ndepthResolveMode
public static void ndepthResolveMode(long struct, int value)
Unsafe version ofdepthResolveMode
.
-
nstencilResolveMode
public static void nstencilResolveMode(long struct, int value)
Unsafe version ofstencilResolveMode
.
-
npDepthStencilResolveAttachment
public static void npDepthStencilResolveAttachment(long struct, @Nullable VkAttachmentReference2KHR value)
Unsafe version ofpDepthStencilResolveAttachment
.
-
-