Package org.lwjgl.vulkan
Class VkAttachmentSampleLocationsEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAttachmentSampleLocationsEXT>
org.lwjgl.vulkan.VkAttachmentSampleLocationsEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAttachmentSampleLocationsEXT
extends org.lwjgl.system.Struct<VkAttachmentSampleLocationsEXT>
implements org.lwjgl.system.NativeResource
Structure specifying the sample locations state to use in the initial layout transition of attachments.
Description
If the image referenced by the framebuffer attachment at index attachmentIndex was not created with IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT then the values specified in sampleLocationsInfo are ignored.
Valid Usage
attachmentIndexmust be less than theattachmentCountspecified inVkRenderPassCreateInfothe render pass specified byVkRenderPassBeginInfo::renderPasswas created with
Valid Usage (Implicit)
sampleLocationsInfomust be a validVkSampleLocationsInfoEXTstructure
See Also
VkRenderPassSampleLocationsBeginInfoEXT, VkSampleLocationsInfoEXT
Layout
struct VkAttachmentSampleLocationsEXT {
uint32_t attachmentIndex();
VkSampleLocationsInfoEXT sampleLocationsInfo();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAttachmentSampleLocationsEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkAttachmentSampleLocationsEXT(ByteBuffer container) Creates aVkAttachmentSampleLocationsEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintthe index of the attachment for which the sample locations state is provided.attachmentIndex(int value) Sets the specified value to theattachmentIndex()field.calloc()Returns a newVkAttachmentSampleLocationsEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Deprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.create()Returns a newVkAttachmentSampleLocationsEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAttachmentSampleLocationsEXTinstance for the specified memory address.create(long address, int capacity) Create aVkAttachmentSampleLocationsEXT.Bufferinstance at the specified memory.static @Nullable VkAttachmentSampleLocationsEXTcreateSafe(long address) static @Nullable VkAttachmentSampleLocationsEXT.BuffercreateSafe(long address, int capacity) malloc()Returns a newVkAttachmentSampleLocationsEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXTinstance allocated on the specifiedMemoryStack.Deprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnattachmentIndex(long struct) Unsafe version ofattachmentIndex().static voidnattachmentIndex(long struct, int value) Unsafe version ofattachmentIndex.static VkSampleLocationsInfoEXTnsampleLocationsInfo(long struct) Unsafe version ofsampleLocationsInfo().static voidnsampleLocationsInfo(long struct, VkSampleLocationsInfoEXT value) Unsafe version ofsampleLocationsInfo.the sample locations state to use for the layout transition of the given attachment from the initial layout of the attachment to the image layout specified for the attachment in the first subpass using it.sampleLocationsInfo(Consumer<VkSampleLocationsInfoEXT> consumer) Passes thesampleLocationsInfo()field to the specifiedConsumer.Copies the specifiedVkSampleLocationsInfoEXTto thesampleLocationsInfo()field.set(int attachmentIndex, VkSampleLocationsInfoEXT sampleLocationsInfo) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ATTACHMENTINDEX
public static final int ATTACHMENTINDEXThe struct member offsets. -
SAMPLELOCATIONSINFO
public static final int SAMPLELOCATIONSINFOThe struct member offsets.
-
-
Constructor Details
-
VkAttachmentSampleLocationsEXT
Creates aVkAttachmentSampleLocationsEXTinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkAttachmentSampleLocationsEXT>
-
attachmentIndex
public int attachmentIndex()the index of the attachment for which the sample locations state is provided. -
sampleLocationsInfo
the sample locations state to use for the layout transition of the given attachment from the initial layout of the attachment to the image layout specified for the attachment in the first subpass using it. -
attachmentIndex
Sets the specified value to theattachmentIndex()field. -
sampleLocationsInfo
Copies the specifiedVkSampleLocationsInfoEXTto thesampleLocationsInfo()field. -
sampleLocationsInfo
public VkAttachmentSampleLocationsEXT sampleLocationsInfo(Consumer<VkSampleLocationsInfoEXT> consumer) Passes thesampleLocationsInfo()field to the specifiedConsumer. -
set
public VkAttachmentSampleLocationsEXT set(int attachmentIndex, VkSampleLocationsInfoEXT sampleLocationsInfo) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAttachmentSampleLocationsEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAttachmentSampleLocationsEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAttachmentSampleLocationsEXTinstance allocated withBufferUtils. -
create
Returns a newVkAttachmentSampleLocationsEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAttachmentSampleLocationsEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAttachmentSampleLocationsEXT.Buffer createSafe(long address, int capacity) -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
@Deprecated public static VkAttachmentSampleLocationsEXT mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static VkAttachmentSampleLocationsEXT callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkAttachmentSampleLocationsEXT.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 VkAttachmentSampleLocationsEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkAttachmentSampleLocationsEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAttachmentSampleLocationsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentSampleLocationsEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAttachmentSampleLocationsEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAttachmentSampleLocationsEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nattachmentIndex
public static int nattachmentIndex(long struct) Unsafe version ofattachmentIndex(). -
nsampleLocationsInfo
Unsafe version ofsampleLocationsInfo(). -
nattachmentIndex
public static void nattachmentIndex(long struct, int value) Unsafe version ofattachmentIndex. -
nsampleLocationsInfo
Unsafe version ofsampleLocationsInfo. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-