Package org.lwjgl.vulkan
Class VkRenderPassSampleLocationsBeginInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderPassSampleLocationsBeginInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRenderPassSampleLocationsBeginInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sample locations to use for the layout transition of custom sample locations compatible depth/stencil attachments.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT- If
attachmentInitialSampleLocationsCountis not 0,pAttachmentInitialSampleLocationsmust be a valid pointer to an array ofattachmentInitialSampleLocationsCountvalidVkAttachmentSampleLocationsEXTstructures - If
postSubpassSampleLocationsCountis not 0,pPostSubpassSampleLocationsmust be a valid pointer to an array ofpostSubpassSampleLocationsCountvalidVkSubpassSampleLocationsEXTstructures
See Also
VkAttachmentSampleLocationsEXT,VkSubpassSampleLocationsEXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.attachmentInitialSampleLocationsCount– the number of elements in thepAttachmentInitialSampleLocationsarray.pAttachmentInitialSampleLocations– an array ofattachmentInitialSampleLocationsCountVkAttachmentSampleLocationsEXTstructures specifying the attachment indices and their corresponding sample location state. Each element ofpAttachmentInitialSampleLocationscan specify the sample location state to use in the automatic layout transition performed to transition a depth/stencil attachment from the initial layout of the attachment to the image layout specified for the attachment in the first subpass using it.postSubpassSampleLocationsCount– the number of elements in thepPostSubpassSampleLocationsarray.pPostSubpassSampleLocations– an array ofpostSubpassSampleLocationsCountVkSubpassSampleLocationsEXTstructures specifying the subpass indices and their corresponding sample location state. Each element ofpPostSubpassSampleLocationscan specify the sample location state to use in the automatic layout transition performed to transition the depth/stencil attachment used by the specified subpass to the image layout specified in a dependent subpass or to the final layout of the attachment in case the specified subpass is the last subpass using that attachment. In addition, ifVkPhysicalDeviceSampleLocationsPropertiesEXT::variableSampleLocationsisFALSE, each element ofpPostSubpassSampleLocationsmust specify the sample location state that matches the sample locations used by all pipelines that will be bound to a command buffer during the specified subpass. IfvariableSampleLocationsisTRUE, the sample locations used for rasterization do not depend onpPostSubpassSampleLocations.
Layout
struct VkRenderPassSampleLocationsBeginInfoEXT { VkStructureType sType; void const * pNext; uint32_t attachmentInitialSampleLocationsCount;VkAttachmentSampleLocationsEXTconst * pAttachmentInitialSampleLocations; uint32_t postSubpassSampleLocationsCount;VkSubpassSampleLocationsEXTconst * pPostSubpassSampleLocations; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderPassSampleLocationsBeginInfoEXT.BufferAn array ofVkRenderPassSampleLocationsBeginInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTINITIALSAMPLELOCATIONSCOUNT
PATTACHMENTINITIALSAMPLELOCATIONS
PNEXT
POSTSUBPASSSAMPLELOCATIONSCOUNT
PPOSTSUBPASSSAMPLELOCATIONSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassSampleLocationsBeginInfoEXT(java.nio.ByteBuffer container)Creates aVkRenderPassSampleLocationsBeginInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattachmentInitialSampleLocationsCount()Returns the value of theattachmentInitialSampleLocationsCountfield.static VkRenderPassSampleLocationsBeginInfoEXTcalloc()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withmemCalloc.static VkRenderPassSampleLocationsBeginInfoEXT.Buffercalloc(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withmemCalloc.static VkRenderPassSampleLocationsBeginInfoEXTcallocStack()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT.BuffercallocStack(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXTcreate()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withBufferUtils.static VkRenderPassSampleLocationsBeginInfoEXT.Buffercreate(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withBufferUtils.static VkRenderPassSampleLocationsBeginInfoEXTcreate(long address)Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance for the specified memory address.static VkRenderPassSampleLocationsBeginInfoEXT.Buffercreate(long address, int capacity)Create aVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance at the specified memory.static VkRenderPassSampleLocationsBeginInfoEXTcreateSafe(long address)static VkRenderPassSampleLocationsBeginInfoEXT.BuffercreateSafe(long address, int capacity)static VkRenderPassSampleLocationsBeginInfoEXTmalloc()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withmemAlloc.static VkRenderPassSampleLocationsBeginInfoEXT.Buffermalloc(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withmemAlloc.static VkRenderPassSampleLocationsBeginInfoEXTmallocStack()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the thread-localMemoryStack.static VkRenderPassSampleLocationsBeginInfoEXT.BuffermallocStack(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkRenderPassSampleLocationsBeginInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassSampleLocationsBeginInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStack.static intnattachmentInitialSampleLocationsCount(long struct)Unsafe version ofattachmentInitialSampleLocationsCount().static voidnattachmentInitialSampleLocationsCount(long struct, int value)Sets the specified value to theattachmentInitialSampleLocationsCountfield of the specifiedstruct.static VkAttachmentSampleLocationsEXT.BuffernpAttachmentInitialSampleLocations(long struct)Unsafe version ofpAttachmentInitialSampleLocations().static voidnpAttachmentInitialSampleLocations(long struct, VkAttachmentSampleLocationsEXT.Buffer value)Unsafe version ofpAttachmentInitialSampleLocations.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnpostSubpassSampleLocationsCount(long struct)Unsafe version ofpostSubpassSampleLocationsCount().static voidnpostSubpassSampleLocationsCount(long struct, int value)Sets the specified value to thepostSubpassSampleLocationsCountfield of the specifiedstruct.static VkSubpassSampleLocationsEXT.BuffernpPostSubpassSampleLocations(long struct)Unsafe version ofpPostSubpassSampleLocations().static voidnpPostSubpassSampleLocations(long struct, VkSubpassSampleLocationsEXT.Buffer value)Unsafe version ofpPostSubpassSampleLocations.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkAttachmentSampleLocationsEXT.BufferpAttachmentInitialSampleLocations()Returns aVkAttachmentSampleLocationsEXT.Bufferview of the struct array pointed to by thepAttachmentInitialSampleLocationsfield.VkRenderPassSampleLocationsBeginInfoEXTpAttachmentInitialSampleLocations(VkAttachmentSampleLocationsEXT.Buffer value)Sets the address of the specifiedVkAttachmentSampleLocationsEXT.Bufferto thepAttachmentInitialSampleLocationsfield.longpNext()Returns the value of thepNextfield.VkRenderPassSampleLocationsBeginInfoEXTpNext(long value)Sets the specified value to thepNextfield.intpostSubpassSampleLocationsCount()Returns the value of thepostSubpassSampleLocationsCountfield.VkSubpassSampleLocationsEXT.BufferpPostSubpassSampleLocations()Returns aVkSubpassSampleLocationsEXT.Bufferview of the struct array pointed to by thepPostSubpassSampleLocationsfield.VkRenderPassSampleLocationsBeginInfoEXTpPostSubpassSampleLocations(VkSubpassSampleLocationsEXT.Buffer value)Sets the address of the specifiedVkSubpassSampleLocationsEXT.Bufferto thepPostSubpassSampleLocationsfield.VkRenderPassSampleLocationsBeginInfoEXTset(int sType, long pNext, VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations, VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations)Initializes this struct with the specified values.VkRenderPassSampleLocationsBeginInfoEXTset(VkRenderPassSampleLocationsBeginInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkRenderPassSampleLocationsBeginInfoEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkRenderPassSampleLocationsBeginInfoEXT
public VkRenderPassSampleLocationsBeginInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderPassSampleLocationsBeginInfoEXTinstance 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.
-
attachmentInitialSampleLocationsCount
public int attachmentInitialSampleLocationsCount()
Returns the value of theattachmentInitialSampleLocationsCountfield.
-
pAttachmentInitialSampleLocations
@Nullable public VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations()
Returns aVkAttachmentSampleLocationsEXT.Bufferview of the struct array pointed to by thepAttachmentInitialSampleLocationsfield.
-
postSubpassSampleLocationsCount
public int postSubpassSampleLocationsCount()
Returns the value of thepostSubpassSampleLocationsCountfield.
-
pPostSubpassSampleLocations
@Nullable public VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations()
Returns aVkSubpassSampleLocationsEXT.Bufferview of the struct array pointed to by thepPostSubpassSampleLocationsfield.
-
sType
public VkRenderPassSampleLocationsBeginInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkRenderPassSampleLocationsBeginInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
pAttachmentInitialSampleLocations
public VkRenderPassSampleLocationsBeginInfoEXT pAttachmentInitialSampleLocations(@Nullable VkAttachmentSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkAttachmentSampleLocationsEXT.Bufferto thepAttachmentInitialSampleLocationsfield.
-
pPostSubpassSampleLocations
public VkRenderPassSampleLocationsBeginInfoEXT pPostSubpassSampleLocations(@Nullable VkSubpassSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkSubpassSampleLocationsEXT.Bufferto thepPostSubpassSampleLocationsfield.
-
set
public VkRenderPassSampleLocationsBeginInfoEXT set(int sType, long pNext, @Nullable VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations, @Nullable VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations)
Initializes this struct with the specified values.
-
set
public VkRenderPassSampleLocationsBeginInfoEXT set(VkRenderPassSampleLocationsBeginInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderPassSampleLocationsBeginInfoEXT malloc()
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT calloc()
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT create()
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withBufferUtils.
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT create(long address)
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassSampleLocationsBeginInfoEXT createSafe(long address)
-
malloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer malloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer calloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer create(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer create(long address, int capacity)
Create aVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkRenderPassSampleLocationsBeginInfoEXT mallocStack()
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT callocStack()
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkRenderPassSampleLocationsBeginInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer callocStack(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.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().
-
nattachmentInitialSampleLocationsCount
public static int nattachmentInitialSampleLocationsCount(long struct)
Unsafe version ofattachmentInitialSampleLocationsCount().
-
npAttachmentInitialSampleLocations
@Nullable public static VkAttachmentSampleLocationsEXT.Buffer npAttachmentInitialSampleLocations(long struct)
Unsafe version ofpAttachmentInitialSampleLocations().
-
npostSubpassSampleLocationsCount
public static int npostSubpassSampleLocationsCount(long struct)
Unsafe version ofpostSubpassSampleLocationsCount().
-
npPostSubpassSampleLocations
@Nullable public static VkSubpassSampleLocationsEXT.Buffer npPostSubpassSampleLocations(long struct)
Unsafe version ofpPostSubpassSampleLocations().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nattachmentInitialSampleLocationsCount
public static void nattachmentInitialSampleLocationsCount(long struct, int value)Sets the specified value to theattachmentInitialSampleLocationsCountfield of the specifiedstruct.
-
npAttachmentInitialSampleLocations
public static void npAttachmentInitialSampleLocations(long struct, @Nullable VkAttachmentSampleLocationsEXT.Buffer value)Unsafe version ofpAttachmentInitialSampleLocations.
-
npostSubpassSampleLocationsCount
public static void npostSubpassSampleLocationsCount(long struct, int value)Sets the specified value to thepostSubpassSampleLocationsCountfield of the specifiedstruct.
-
npPostSubpassSampleLocations
public static void npPostSubpassSampleLocations(long struct, @Nullable VkSubpassSampleLocationsEXT.Buffer value)Unsafe version ofpPostSubpassSampleLocations.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-