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,VkSubpassSampleLocationsEXTLayout
struct VkRenderPassSampleLocationsBeginInfoEXT { VkStructureTypesType(); void const *pNext(); uint32_tattachmentInitialSampleLocationsCount();VkAttachmentSampleLocationsEXTconst *pAttachmentInitialSampleLocations(); uint32_tpostSubpassSampleLocationsCount();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 Deprecated Methods Modifier and Type Method Description intattachmentInitialSampleLocationsCount()the number of elements in thepAttachmentInitialSampleLocationsarray.static VkRenderPassSampleLocationsBeginInfoEXTcalloc()Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated withmemCalloc.static VkRenderPassSampleLocationsBeginInfoEXT.Buffercalloc(int capacity)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated withmemCalloc.static VkRenderPassSampleLocationsBeginInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassSampleLocationsBeginInfoEXTcallocStack()Deprecated.static VkRenderPassSampleLocationsBeginInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkRenderPassSampleLocationsBeginInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassSampleLocationsBeginInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkRenderPassSampleLocationsBeginInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassSampleLocationsBeginInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStack.static VkRenderPassSampleLocationsBeginInfoEXTmallocStack()Deprecated.static VkRenderPassSampleLocationsBeginInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkRenderPassSampleLocationsBeginInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassSampleLocationsBeginInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofattachmentInitialSampleLocationsCountVkAttachmentSampleLocationsEXTstructures specifying the attachment indices and their corresponding sample location state.VkRenderPassSampleLocationsBeginInfoEXTpAttachmentInitialSampleLocations(VkAttachmentSampleLocationsEXT.Buffer value)Sets the address of the specifiedVkAttachmentSampleLocationsEXT.Bufferto thepAttachmentInitialSampleLocations()field.longpNext()NULLor a pointer to a structure extending this structure.VkRenderPassSampleLocationsBeginInfoEXTpNext(long value)Sets the specified value to thepNext()field.intpostSubpassSampleLocationsCount()the number of elements in thepPostSubpassSampleLocationsarray.VkSubpassSampleLocationsEXT.BufferpPostSubpassSampleLocations()a pointer to an array ofpostSubpassSampleLocationsCountVkSubpassSampleLocationsEXTstructures specifying the subpass indices and their corresponding sample location state.VkRenderPassSampleLocationsBeginInfoEXTpPostSubpassSampleLocations(VkSubpassSampleLocationsEXT.Buffer value)Sets the address of the specifiedVkSubpassSampleLocationsEXT.Bufferto thepPostSubpassSampleLocations()field.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()the type of this structure.VkRenderPassSampleLocationsBeginInfoEXTsType(int value)Sets the specified value to thesType()field.VkRenderPassSampleLocationsBeginInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
attachmentInitialSampleLocationsCount
public int attachmentInitialSampleLocationsCount()
the number of elements in thepAttachmentInitialSampleLocationsarray.
-
pAttachmentInitialSampleLocations
@Nullable public VkAttachmentSampleLocationsEXT.Buffer pAttachmentInitialSampleLocations()
a pointer to 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
public int postSubpassSampleLocationsCount()
the number of elements in thepPostSubpassSampleLocationsarray.
-
pPostSubpassSampleLocations
@Nullable public VkSubpassSampleLocationsEXT.Buffer pPostSubpassSampleLocations()
a pointer to 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.
-
sType
public VkRenderPassSampleLocationsBeginInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRenderPassSampleLocationsBeginInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXTvalue 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.Bufferto thepAttachmentInitialSampleLocations()field.
-
pPostSubpassSampleLocations
public VkRenderPassSampleLocationsBeginInfoEXT pPostSubpassSampleLocations(@Nullable VkSubpassSampleLocationsEXT.Buffer value)
Sets the address of the specifiedVkSubpassSampleLocationsEXT.Bufferto 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 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
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkRenderPassSampleLocationsBeginInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassSampleLocationsBeginInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT calloc(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
-
malloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer malloc(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
-
calloc
public static VkRenderPassSampleLocationsBeginInfoEXT.Buffer calloc(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
-
-