public class VkSubpassSampleLocationsEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the image referenced by the depth/stencil attachment used in the subpass identified by subpassIndex was not created with IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT or if the subpass does not use a depth/stencil attachment, and VkPhysicalDeviceSampleLocationsPropertiesEXT::variableSampleLocations is TRUE then the values specified in sampleLocationsInfo are ignored.
subpassIndex must be less than the subpassCount specified in VkRenderPassCreateInfo the render pass specified by VkRenderPassBeginInfo::renderPass was created withsampleLocationsInfo must be a valid VkSampleLocationsInfoEXT structureVkRenderPassSampleLocationsBeginInfoEXT, VkSampleLocationsInfoEXT
subpassIndex – the index of the subpass for which the sample locations state is provided.sampleLocationsInfo – the sample locations state to use for the layout transition of the depth/stencil attachment away from the image layout the attachment is used with in the subpass specified in subpassIndex.
struct VkSubpassSampleLocationsEXT {
uint32_t subpassIndex;
VkSampleLocationsInfoEXT sampleLocationsInfo;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSubpassSampleLocationsEXT.Buffer
An array of
VkSubpassSampleLocationsEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SAMPLELOCATIONSINFO
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SUBPASSINDEX
The struct member offsets.
|
| Constructor and Description |
|---|
VkSubpassSampleLocationsEXT(java.nio.ByteBuffer container)
Creates a
VkSubpassSampleLocationsEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSubpassSampleLocationsEXT |
calloc()
Returns a new
VkSubpassSampleLocationsEXT instance allocated with memCalloc. |
static VkSubpassSampleLocationsEXT.Buffer |
calloc(int capacity)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated with memCalloc. |
static VkSubpassSampleLocationsEXT |
callocStack()
Returns a new
VkSubpassSampleLocationsEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSubpassSampleLocationsEXT.Buffer |
callocStack(int capacity)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSubpassSampleLocationsEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSubpassSampleLocationsEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSubpassSampleLocationsEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSubpassSampleLocationsEXT |
create()
Returns a new
VkSubpassSampleLocationsEXT instance allocated with BufferUtils. |
static VkSubpassSampleLocationsEXT.Buffer |
create(int capacity)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated with BufferUtils. |
static VkSubpassSampleLocationsEXT |
create(long address)
Returns a new
VkSubpassSampleLocationsEXT instance for the specified memory address. |
static VkSubpassSampleLocationsEXT.Buffer |
create(long address,
int capacity)
Create a
VkSubpassSampleLocationsEXT.Buffer instance at the specified memory. |
static VkSubpassSampleLocationsEXT |
createSafe(long address)
|
static VkSubpassSampleLocationsEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkSubpassSampleLocationsEXT |
malloc()
Returns a new
VkSubpassSampleLocationsEXT instance allocated with memAlloc. |
static VkSubpassSampleLocationsEXT.Buffer |
malloc(int capacity)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated with memAlloc. |
static VkSubpassSampleLocationsEXT |
mallocStack()
Returns a new
VkSubpassSampleLocationsEXT instance allocated on the thread-local MemoryStack. |
static VkSubpassSampleLocationsEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkSubpassSampleLocationsEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSubpassSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack. |
static VkSubpassSampleLocationsEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSubpassSampleLocationsEXT instance allocated on the specified MemoryStack. |
static VkSampleLocationsInfoEXT |
nsampleLocationsInfo(long struct)
Unsafe version of
sampleLocationsInfo(). |
static void |
nsampleLocationsInfo(long struct,
VkSampleLocationsInfoEXT value)
Unsafe version of
sampleLocationsInfo. |
static int |
nsubpassIndex(long struct)
Unsafe version of
subpassIndex(). |
static void |
nsubpassIndex(long struct,
int value)
Unsafe version of
subpassIndex. |
VkSampleLocationsInfoEXT |
sampleLocationsInfo()
Returns a
VkSampleLocationsInfoEXT view of the sampleLocationsInfo field. |
VkSubpassSampleLocationsEXT |
sampleLocationsInfo(java.util.function.Consumer<VkSampleLocationsInfoEXT> consumer)
Passes the
sampleLocationsInfo field to the specified Consumer. |
VkSubpassSampleLocationsEXT |
sampleLocationsInfo(VkSampleLocationsInfoEXT value)
Copies the specified
VkSampleLocationsInfoEXT to the sampleLocationsInfo field. |
VkSubpassSampleLocationsEXT |
set(int subpassIndex,
VkSampleLocationsInfoEXT sampleLocationsInfo)
Initializes this struct with the specified values.
|
VkSubpassSampleLocationsEXT |
set(VkSubpassSampleLocationsEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
subpassIndex()
Returns the value of the
subpassIndex field. |
VkSubpassSampleLocationsEXT |
subpassIndex(int value)
Sets the specified value to the
subpassIndex field. |
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 SUBPASSINDEX
public static final int SAMPLELOCATIONSINFO
public VkSubpassSampleLocationsEXT(java.nio.ByteBuffer container)
VkSubpassSampleLocationsEXT 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 subpassIndex()
subpassIndex field.public VkSampleLocationsInfoEXT sampleLocationsInfo()
VkSampleLocationsInfoEXT view of the sampleLocationsInfo field.public VkSubpassSampleLocationsEXT subpassIndex(int value)
subpassIndex field.public VkSubpassSampleLocationsEXT sampleLocationsInfo(VkSampleLocationsInfoEXT value)
VkSampleLocationsInfoEXT to the sampleLocationsInfo field.public VkSubpassSampleLocationsEXT sampleLocationsInfo(java.util.function.Consumer<VkSampleLocationsInfoEXT> consumer)
sampleLocationsInfo field to the specified Consumer.public VkSubpassSampleLocationsEXT set(int subpassIndex, VkSampleLocationsInfoEXT sampleLocationsInfo)
public VkSubpassSampleLocationsEXT set(VkSubpassSampleLocationsEXT src)
src - the source structpublic static VkSubpassSampleLocationsEXT malloc()
VkSubpassSampleLocationsEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkSubpassSampleLocationsEXT calloc()
VkSubpassSampleLocationsEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkSubpassSampleLocationsEXT create()
VkSubpassSampleLocationsEXT instance allocated with BufferUtils.public static VkSubpassSampleLocationsEXT create(long address)
VkSubpassSampleLocationsEXT instance for the specified memory address.@Nullable public static VkSubpassSampleLocationsEXT createSafe(long address)
public static VkSubpassSampleLocationsEXT.Buffer malloc(int capacity)
VkSubpassSampleLocationsEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer calloc(int capacity)
VkSubpassSampleLocationsEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer create(int capacity)
VkSubpassSampleLocationsEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer create(long address, int capacity)
VkSubpassSampleLocationsEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSubpassSampleLocationsEXT.Buffer createSafe(long address, int capacity)
public static VkSubpassSampleLocationsEXT mallocStack()
VkSubpassSampleLocationsEXT instance allocated on the thread-local MemoryStack.public static VkSubpassSampleLocationsEXT callocStack()
VkSubpassSampleLocationsEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSubpassSampleLocationsEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkSubpassSampleLocationsEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSubpassSampleLocationsEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkSubpassSampleLocationsEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSubpassSampleLocationsEXT.Buffer mallocStack(int capacity)
VkSubpassSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer callocStack(int capacity)
VkSubpassSampleLocationsEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSubpassSampleLocationsEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSubpassSampleLocationsEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSubpassSampleLocationsEXT.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 nsubpassIndex(long struct)
subpassIndex().public static VkSampleLocationsInfoEXT nsampleLocationsInfo(long struct)
sampleLocationsInfo().public static void nsubpassIndex(long struct,
int value)
subpassIndex.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.