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.NativeResourceStructure specifying depth/stencil resolve operations for a subpass.Valid Usage
- If
pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSED,pDepthStencilAttachmentmust not have the valueATTACHMENT_UNUSED - If
pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSED,depthResolveModeandstencilResolveModemust not both beRESOLVE_MODE_NONE_KHR - If
pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSED,pDepthStencilAttachmentmust not have a sample count ofSAMPLE_COUNT_1_BIT - If
pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSED,pDepthStencilResolveAttachmentmust have a sample count ofSAMPLE_COUNT_1_BIT - If
pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSEDthen it must have a format whose features containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If the
VkFormatofpDepthStencilResolveAttachmenthas a depth component, then theVkFormatofpDepthStencilAttachmentmust have a depth component with the same number of bits and numerical type - If the
VkFormatofpDepthStencilResolveAttachmenthas a stencil component, then theVkFormatofpDepthStencilAttachmentmust have a stencil component with the same number of bits and numerical type - The value of
depthResolveModemust be one of the bits set inVkPhysicalDeviceDepthStencilResolvePropertiesKHR::supportedDepthResolveModesorRESOLVE_MODE_NONE_KHR - The value of
stencilResolveModemust be one of the bits set inVkPhysicalDeviceDepthStencilResolvePropertiesKHR::supportedStencilResolveModesorRESOLVE_MODE_NONE_KHR - If the
VkFormatofpDepthStencilResolveAttachmenthas both depth and stencil components,VkPhysicalDeviceDepthStencilResolvePropertiesKHR::independentResolveisFALSE, andVkPhysicalDeviceDepthStencilResolvePropertiesKHR::independentResolveNoneisFALSE, then the values ofdepthResolveModeandstencilResolveModemust be identical - If the
VkFormatofpDepthStencilResolveAttachmenthas both depth and stencil components,VkPhysicalDeviceDepthStencilResolvePropertiesKHR::independentResolveisFALSEandVkPhysicalDeviceDepthStencilResolvePropertiesKHR::independentResolveNoneisTRUE, then the values ofdepthResolveModeandstencilResolveModemust be identical or one of them must beRESOLVE_MODE_NONE_KHR
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE_KHRdepthResolveModemust be a validVkResolveModeFlagBitsKHRvaluestencilResolveModemust be a validVkResolveModeFlagBitsKHRvalue- If
pDepthStencilResolveAttachmentis notNULL,pDepthStencilResolveAttachmentmust be a valid pointer to a validVkAttachmentReference2KHRstructure
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.depthResolveMode– a bitmask ofVkResolveModeFlagBitsKHRdescribing the depth resolve mode.stencilResolveMode– a bitmask ofVkResolveModeFlagBitsKHRdescribing the stencil resolve mode.pDepthStencilResolveAttachment– an optionalVkAttachmentReferencestructure defining the depth/stencil resolve attachment for this subpass and its layout.
Layout
struct VkSubpassDescriptionDepthStencilResolveKHR { VkStructureType sType; void const * pNext; VkResolveModeFlagBitsKHR depthResolveMode; VkResolveModeFlagBitsKHR stencilResolveMode;VkAttachmentReference2KHRconst * pDepthStencilResolveAttachment; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassDescriptionDepthStencilResolveKHR.BufferAn array ofVkSubpassDescriptionDepthStencilResolveKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEPTHRESOLVEMODE
PDEPTHSTENCILRESOLVEATTACHMENT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILRESOLVEMODE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescriptionDepthStencilResolveKHR(java.nio.ByteBuffer container)Creates aVkSubpassDescriptionDepthStencilResolveKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescriptionDepthStencilResolveKHRcalloc()Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withmemCalloc.static VkSubpassDescriptionDepthStencilResolveKHR.Buffercalloc(int capacity)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withmemCalloc.static VkSubpassDescriptionDepthStencilResolveKHRcallocStack()Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR.BuffercallocStack(int capacity)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptionDepthStencilResolveKHRcreate()Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withBufferUtils.static VkSubpassDescriptionDepthStencilResolveKHR.Buffercreate(int capacity)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withBufferUtils.static VkSubpassDescriptionDepthStencilResolveKHRcreate(long address)Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance for the specified memory address.static VkSubpassDescriptionDepthStencilResolveKHR.Buffercreate(long address, int capacity)Create aVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance at the specified memory.static VkSubpassDescriptionDepthStencilResolveKHRcreateSafe(long address)static VkSubpassDescriptionDepthStencilResolveKHR.BuffercreateSafe(long address, int capacity)intdepthResolveMode()Returns the value of thedepthResolveModefield.VkSubpassDescriptionDepthStencilResolveKHRdepthResolveMode(int value)Sets the specified value to thedepthResolveModefield.static VkSubpassDescriptionDepthStencilResolveKHRmalloc()Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withmemAlloc.static VkSubpassDescriptionDepthStencilResolveKHR.Buffermalloc(int capacity)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withmemAlloc.static VkSubpassDescriptionDepthStencilResolveKHRmallocStack()Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the thread-localMemoryStack.static VkSubpassDescriptionDepthStencilResolveKHR.BuffermallocStack(int capacity)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkSubpassDescriptionDepthStencilResolveKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescriptionDepthStencilResolveKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the specifiedMemoryStack.static intndepthResolveMode(long struct)Unsafe version ofdepthResolveMode().static voidndepthResolveMode(long struct, int value)Unsafe version ofdepthResolveMode.static VkAttachmentReference2KHRnpDepthStencilResolveAttachment(long struct)Unsafe version ofpDepthStencilResolveAttachment().static voidnpDepthStencilResolveAttachment(long struct, VkAttachmentReference2KHR value)Unsafe version ofpDepthStencilResolveAttachment.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstencilResolveMode(long struct)Unsafe version ofstencilResolveMode().static voidnstencilResolveMode(long struct, int value)Unsafe version ofstencilResolveMode.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkAttachmentReference2KHRpDepthStencilResolveAttachment()Returns aVkAttachmentReference2KHRview of the struct pointed to by thepDepthStencilResolveAttachmentfield.VkSubpassDescriptionDepthStencilResolveKHRpDepthStencilResolveAttachment(VkAttachmentReference2KHR value)Sets the address of the specifiedVkAttachmentReference2KHRto thepDepthStencilResolveAttachmentfield.longpNext()Returns the value of thepNextfield.VkSubpassDescriptionDepthStencilResolveKHRpNext(long value)Sets the specified value to thepNextfield.VkSubpassDescriptionDepthStencilResolveKHRset(int sType, long pNext, int depthResolveMode, int stencilResolveMode, VkAttachmentReference2KHR pDepthStencilResolveAttachment)Initializes this struct with the specified values.VkSubpassDescriptionDepthStencilResolveKHRset(VkSubpassDescriptionDepthStencilResolveKHR src)Copies the specified struct data to this struct.intsizeof()intstencilResolveMode()Returns the value of thestencilResolveModefield.VkSubpassDescriptionDepthStencilResolveKHRstencilResolveMode(int value)Sets the specified value to thestencilResolveModefield.intsType()Returns the value of thesTypefield.VkSubpassDescriptionDepthStencilResolveKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkSubpassDescriptionDepthStencilResolveKHR
public VkSubpassDescriptionDepthStencilResolveKHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescriptionDepthStencilResolveKHRinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
depthResolveMode
public int depthResolveMode()
Returns the value of thedepthResolveModefield.
-
stencilResolveMode
public int stencilResolveMode()
Returns the value of thestencilResolveModefield.
-
pDepthStencilResolveAttachment
@Nullable public VkAttachmentReference2KHR pDepthStencilResolveAttachment()
Returns aVkAttachmentReference2KHRview of the struct pointed to by thepDepthStencilResolveAttachmentfield.
-
sType
public VkSubpassDescriptionDepthStencilResolveKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSubpassDescriptionDepthStencilResolveKHR pNext(long value)
Sets the specified value to thepNextfield.
-
depthResolveMode
public VkSubpassDescriptionDepthStencilResolveKHR depthResolveMode(int value)
Sets the specified value to thedepthResolveModefield.
-
stencilResolveMode
public VkSubpassDescriptionDepthStencilResolveKHR stencilResolveMode(int value)
Sets the specified value to thestencilResolveModefield.
-
pDepthStencilResolveAttachment
public VkSubpassDescriptionDepthStencilResolveKHR pDepthStencilResolveAttachment(@Nullable VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHRto thepDepthStencilResolveAttachmentfield.
-
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 newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescriptionDepthStencilResolveKHR calloc()
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR create()
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated withBufferUtils.
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR create(long address)
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescriptionDepthStencilResolveKHR createSafe(long address)
-
malloc
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer malloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer calloc(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer create(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer create(long address, int capacity)
Create aVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance 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 newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR callocStack()
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescriptionDepthStencilResolveKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptionDepthStencilResolveKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSubpassDescriptionDepthStencilResolveKHR.Buffer callocStack(int capacity)
Returns a newVkSubpassDescriptionDepthStencilResolveKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-