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.NativeResource
Structure specifying sample locations to use for the layout transition of custom sample locations compatible depth/stencil attachments.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT
- If
attachmentInitialSampleLocationsCount
is not 0,pAttachmentInitialSampleLocations
must be a valid pointer to an array ofattachmentInitialSampleLocationsCount
validVkAttachmentSampleLocationsEXT
structures - If
postSubpassSampleLocationsCount
is not 0,pPostSubpassSampleLocations
must be a valid pointer to an array ofpostSubpassSampleLocationsCount
validVkSubpassSampleLocationsEXT
structures
See Also
VkAttachmentSampleLocationsEXT
,VkSubpassSampleLocationsEXT
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.attachmentInitialSampleLocationsCount
– the number of elements in thepAttachmentInitialSampleLocations
array.pAttachmentInitialSampleLocations
– an array ofattachmentInitialSampleLocationsCount
VkAttachmentSampleLocationsEXT
structures specifying the attachment indices and their corresponding sample location state. Each element ofpAttachmentInitialSampleLocations
can 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 thepPostSubpassSampleLocations
array.pPostSubpassSampleLocations
– an array ofpostSubpassSampleLocationsCount
VkSubpassSampleLocationsEXT
structures specifying the subpass indices and their corresponding sample location state. Each element ofpPostSubpassSampleLocations
can 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
::variableSampleLocations
isFALSE
, each element ofpPostSubpassSampleLocations
must 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. IfvariableSampleLocations
isTRUE
, the sample locations used for rasterization do not depend onpPostSubpassSampleLocations
.
Layout
struct VkRenderPassSampleLocationsBeginInfoEXT { VkStructureType sType; void const * pNext; uint32_t attachmentInitialSampleLocationsCount;
VkAttachmentSampleLocationsEXT
const * pAttachmentInitialSampleLocations; uint32_t postSubpassSampleLocationsCount;VkSubpassSampleLocationsEXT
const * pPostSubpassSampleLocations; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkRenderPassSampleLocationsBeginInfoEXT.Buffer
An array ofVkRenderPassSampleLocationsBeginInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTACHMENTINITIALSAMPLELOCATIONSCOUNT
PATTACHMENTINITIALSAMPLELOCATIONS
PNEXT
POSTSUBPASSSAMPLELOCATIONSCOUNT
PPOSTSUBPASSSAMPLELOCATIONSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassSampleLocationsBeginInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderPassSampleLocationsBeginInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attachmentInitialSampleLocationsCount()
Returns the value of theattachmentInitialSampleLocationsCount
field.static VkRenderPassSampleLocationsBeginInfoEXT
calloc()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withmemCalloc
.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
calloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withmemCalloc
.static VkRenderPassSampleLocationsBeginInfoEXT
callocStack()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXT
create()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withBufferUtils
.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
create(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withBufferUtils
.static VkRenderPassSampleLocationsBeginInfoEXT
create(long address)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance for the specified memory address.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
create(long address, int capacity)
Create aVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance at the specified memory.static VkRenderPassSampleLocationsBeginInfoEXT
createSafe(long address)
static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
createSafe(long address, int capacity)
static VkRenderPassSampleLocationsBeginInfoEXT
malloc()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withmemAlloc
.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
malloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withmemAlloc
.static VkRenderPassSampleLocationsBeginInfoEXT
mallocStack()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the thread-localMemoryStack
.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkRenderPassSampleLocationsBeginInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkRenderPassSampleLocationsBeginInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the specifiedMemoryStack
.static int
nattachmentInitialSampleLocationsCount(long struct)
Unsafe version ofattachmentInitialSampleLocationsCount()
.static void
nattachmentInitialSampleLocationsCount(long struct, int value)
Sets the specified value to theattachmentInitialSampleLocationsCount
field of the specifiedstruct
.static VkAttachmentSampleLocationsEXT.Buffer
npAttachmentInitialSampleLocations(long struct)
Unsafe version ofpAttachmentInitialSampleLocations()
.static void
npAttachmentInitialSampleLocations(long struct, VkAttachmentSampleLocationsEXT.Buffer value)
Unsafe version ofpAttachmentInitialSampleLocations
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
npostSubpassSampleLocationsCount(long struct)
Unsafe version ofpostSubpassSampleLocationsCount()
.static void
npostSubpassSampleLocationsCount(long struct, int value)
Sets the specified value to thepostSubpassSampleLocationsCount
field of the specifiedstruct
.static VkSubpassSampleLocationsEXT.Buffer
npPostSubpassSampleLocations(long struct)
Unsafe version ofpPostSubpassSampleLocations()
.static void
npPostSubpassSampleLocations(long struct, VkSubpassSampleLocationsEXT.Buffer value)
Unsafe version ofpPostSubpassSampleLocations
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.VkAttachmentSampleLocationsEXT.Buffer
pAttachmentInitialSampleLocations()
Returns aVkAttachmentSampleLocationsEXT.Buffer
view of the struct array pointed to by thepAttachmentInitialSampleLocations
field.VkRenderPassSampleLocationsBeginInfoEXT
pAttachmentInitialSampleLocations(VkAttachmentSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkAttachmentSampleLocationsEXT.Buffer
to thepAttachmentInitialSampleLocations
field.long
pNext()
Returns the value of thepNext
field.VkRenderPassSampleLocationsBeginInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.int
postSubpassSampleLocationsCount()
Returns the value of thepostSubpassSampleLocationsCount
field.VkSubpassSampleLocationsEXT.Buffer
pPostSubpassSampleLocations()
Returns aVkSubpassSampleLocationsEXT.Buffer
view of the struct array pointed to by thepPostSubpassSampleLocations
field.VkRenderPassSampleLocationsBeginInfoEXT
pPostSubpassSampleLocations(VkSubpassSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkSubpassSampleLocationsEXT.Buffer
to thepPostSubpassSampleLocations
field.VkRenderPassSampleLocationsBeginInfoEXT
set(int sType, long pNext, VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations, VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations)
Initializes this struct with the specified values.VkRenderPassSampleLocationsBeginInfoEXT
set(VkRenderPassSampleLocationsBeginInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkRenderPassSampleLocationsBeginInfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkRenderPassSampleLocationsBeginInfoEXT
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.
-
attachmentInitialSampleLocationsCount
public int attachmentInitialSampleLocationsCount()
Returns the value of theattachmentInitialSampleLocationsCount
field.
-
pAttachmentInitialSampleLocations
@Nullable public VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations()
Returns aVkAttachmentSampleLocationsEXT.Buffer
view of the struct array pointed to by thepAttachmentInitialSampleLocations
field.
-
postSubpassSampleLocationsCount
public int postSubpassSampleLocationsCount()
Returns the value of thepostSubpassSampleLocationsCount
field.
-
pPostSubpassSampleLocations
@Nullable public VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations()
Returns aVkSubpassSampleLocationsEXT.Buffer
view of the struct array pointed to by thepPostSubpassSampleLocations
field.
-
sType
public VkRenderPassSampleLocationsBeginInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkRenderPassSampleLocationsBeginInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
pAttachmentInitialSampleLocations
public VkRenderPassSampleLocationsBeginInfoEXT pAttachmentInitialSampleLocations(@Nullable VkAttachmentSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkAttachmentSampleLocationsEXT.Buffer
to thepAttachmentInitialSampleLocations
field.
-
pPostSubpassSampleLocations
public VkRenderPassSampleLocationsBeginInfoEXT pPostSubpassSampleLocations(@Nullable VkSubpassSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkSubpassSampleLocationsEXT.Buffer
to thepPostSubpassSampleLocations
field.
-
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 newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT calloc()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT create()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT create(long address)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassSampleLocationsBeginInfoEXT createSafe(long address)
-
malloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer malloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer calloc(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer create(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer create(long address, int capacity)
Create aVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance 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 newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT callocStack()
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkRenderPassSampleLocationsBeginInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer callocStack(int capacity)
Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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 theattachmentInitialSampleLocationsCount
field 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 thepostSubpassSampleLocationsCount
field 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
-
-