public class VkAttachmentSampleLocationsEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
attachmentIndex must be less than the attachmentCount specified in VkRenderPassCreateInfo the render pass specified by VkRenderPassBeginInfo::renderPass was created withsampleLocationsInfo must be a valid VkSampleLocationsInfoEXT structureVkRenderPassSampleLocationsBeginInfoEXT, VkSampleLocationsInfoEXT
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.
struct VkAttachmentSampleLocationsEXT {
uint32_t attachmentIndex;
VkSampleLocationsInfoEXT sampleLocationsInfo;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAttachmentSampleLocationsEXT.Buffer
An array of
VkAttachmentSampleLocationsEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATTACHMENTINDEX
The struct member offsets.
|
static int |
SAMPLELOCATIONSINFO
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkAttachmentSampleLocationsEXT(java.nio.ByteBuffer container)
Creates a
VkAttachmentSampleLocationsEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
attachmentIndex()
Returns the value of the
attachmentIndex field. |
VkAttachmentSampleLocationsEXT |
attachmentIndex(int value)
Sets the specified value to the
attachmentIndex field. |
static VkAttachmentSampleLocationsEXT |
calloc()
Returns a new
VkAttachmentSampleLocationsEXT instance allocated with memCalloc. |
static VkAttachmentSampleLocationsEXT.Buffer |
calloc(int capacity)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated with memCalloc. |
static VkAttachmentSampleLocationsEXT |
callocStack()
Returns a new
VkAttachmentSampleLocationsEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentSampleLocationsEXT.Buffer |
callocStack(int capacity)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAttachmentSampleLocationsEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentSampleLocationsEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentSampleLocationsEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAttachmentSampleLocationsEXT |
create()
Returns a new
VkAttachmentSampleLocationsEXT instance allocated with BufferUtils. |
static VkAttachmentSampleLocationsEXT.Buffer |
create(int capacity)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated with BufferUtils. |
static VkAttachmentSampleLocationsEXT |
create(long address)
Returns a new
VkAttachmentSampleLocationsEXT instance for the specified memory address. |
static VkAttachmentSampleLocationsEXT.Buffer |
create(long address,
int capacity)
Create a
VkAttachmentSampleLocationsEXT.Buffer instance at the specified memory. |
static VkAttachmentSampleLocationsEXT |
createSafe(long address)
|
static VkAttachmentSampleLocationsEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkAttachmentSampleLocationsEXT |
malloc()
Returns a new
VkAttachmentSampleLocationsEXT instance allocated with memAlloc. |
static VkAttachmentSampleLocationsEXT.Buffer |
malloc(int capacity)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated with memAlloc. |
static VkAttachmentSampleLocationsEXT |
mallocStack()
Returns a new
VkAttachmentSampleLocationsEXT instance allocated on the thread-local MemoryStack. |
static VkAttachmentSampleLocationsEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkAttachmentSampleLocationsEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack. |
static VkAttachmentSampleLocationsEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAttachmentSampleLocationsEXT instance allocated on the specified MemoryStack. |
static int |
nattachmentIndex(long struct)
Unsafe version of
attachmentIndex(). |
static void |
nattachmentIndex(long struct,
int value)
Unsafe version of
attachmentIndex. |
static VkSampleLocationsInfoEXT |
nsampleLocationsInfo(long struct)
Unsafe version of
sampleLocationsInfo(). |
static void |
nsampleLocationsInfo(long struct,
VkSampleLocationsInfoEXT value)
Unsafe version of
sampleLocationsInfo. |
VkSampleLocationsInfoEXT |
sampleLocationsInfo()
Returns a
VkSampleLocationsInfoEXT view of the sampleLocationsInfo field. |
VkAttachmentSampleLocationsEXT |
sampleLocationsInfo(java.util.function.Consumer<VkSampleLocationsInfoEXT> consumer)
Passes the
sampleLocationsInfo field to the specified Consumer. |
VkAttachmentSampleLocationsEXT |
sampleLocationsInfo(VkSampleLocationsInfoEXT value)
Copies the specified
VkSampleLocationsInfoEXT to the sampleLocationsInfo field. |
VkAttachmentSampleLocationsEXT |
set(int attachmentIndex,
VkSampleLocationsInfoEXT sampleLocationsInfo)
Initializes this struct with the specified values.
|
VkAttachmentSampleLocationsEXT |
set(VkAttachmentSampleLocationsEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ATTACHMENTINDEX
public static final int SAMPLELOCATIONSINFO
public VkAttachmentSampleLocationsEXT(java.nio.ByteBuffer container)
VkAttachmentSampleLocationsEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int attachmentIndex()
attachmentIndex field.public VkSampleLocationsInfoEXT sampleLocationsInfo()
VkSampleLocationsInfoEXT view of the sampleLocationsInfo field.public VkAttachmentSampleLocationsEXT attachmentIndex(int value)
attachmentIndex field.public VkAttachmentSampleLocationsEXT sampleLocationsInfo(VkSampleLocationsInfoEXT value)
VkSampleLocationsInfoEXT to the sampleLocationsInfo field.public VkAttachmentSampleLocationsEXT sampleLocationsInfo(java.util.function.Consumer<VkSampleLocationsInfoEXT> consumer)
sampleLocationsInfo field to the specified Consumer.public VkAttachmentSampleLocationsEXT set(int attachmentIndex, VkSampleLocationsInfoEXT sampleLocationsInfo)
public VkAttachmentSampleLocationsEXT set(VkAttachmentSampleLocationsEXT src)
src - the source structpublic static VkAttachmentSampleLocationsEXT malloc()
VkAttachmentSampleLocationsEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkAttachmentSampleLocationsEXT calloc()
VkAttachmentSampleLocationsEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkAttachmentSampleLocationsEXT create()
VkAttachmentSampleLocationsEXT instance allocated with BufferUtils.public static VkAttachmentSampleLocationsEXT create(long address)
VkAttachmentSampleLocationsEXT instance for the specified memory address.@Nullable public static VkAttachmentSampleLocationsEXT createSafe(long address)
public static VkAttachmentSampleLocationsEXT.Buffer malloc(int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer calloc(int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer create(int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer create(long address, int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAttachmentSampleLocationsEXT.Buffer createSafe(long address, int capacity)
public static VkAttachmentSampleLocationsEXT mallocStack()
VkAttachmentSampleLocationsEXT instance allocated on the thread-local MemoryStack.public static VkAttachmentSampleLocationsEXT callocStack()
VkAttachmentSampleLocationsEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAttachmentSampleLocationsEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentSampleLocationsEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAttachmentSampleLocationsEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkAttachmentSampleLocationsEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAttachmentSampleLocationsEXT.Buffer mallocStack(int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer callocStack(int capacity)
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAttachmentSampleLocationsEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAttachmentSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nattachmentIndex(long struct)
attachmentIndex().public static VkSampleLocationsInfoEXT nsampleLocationsInfo(long struct)
sampleLocationsInfo().public static void nattachmentIndex(long struct,
int value)
attachmentIndex.public static void nsampleLocationsInfo(long struct,
VkSampleLocationsInfoEXT value)
sampleLocationsInfo.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.