Package org.lwjgl.vulkan
Class VkLayerSettingEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkLayerSettingEXT>
org.lwjgl.vulkan.VkLayerSettingEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkLayerSettingEXT
extends org.lwjgl.system.Struct<VkLayerSettingEXT>
implements org.lwjgl.system.NativeResource
Specify a layer capability to configure.
Description
When multiple VkLayerSettingsCreateInfoEXT structures are chained and the same pSettingName is referenced for the same pLayerName, the value of the first reference of the layer setting is used.
Valid Usage
- If
valueCountis not 0,pValuesmust be a valid pointer to an array ofvalueCountvalues of the type indicated bytype
Valid Usage (Implicit)
pLayerNamemust be a null-terminated UTF-8 stringpSettingNamemust be a null-terminated UTF-8 stringtypemust be a validVkLayerSettingTypeEXTvalue
See Also
Layout
struct VkLayerSettingEXT {
char const * pLayerName();
char const * pSettingName();
VkLayerSettingTypeEXT type();
uint32_t valueCount();
void const * pValues(int);
}-
Nested Class Summary
Nested ClassesNested 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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkLayerSettingEXT(ByteBuffer container) Creates aVkLayerSettingEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkLayerSettingEXTcalloc()Returns a newVkLayerSettingEXTinstance allocated withmemCalloc.static VkLayerSettingEXT.Buffercalloc(int capacity) Returns a newVkLayerSettingEXT.Bufferinstance allocated withmemCalloc.static VkLayerSettingEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerSettingEXTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkLayerSettingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerSettingEXTcreate()Returns a newVkLayerSettingEXTinstance allocated withBufferUtils.static VkLayerSettingEXT.Buffercreate(int capacity) Returns a newVkLayerSettingEXT.Bufferinstance allocated withBufferUtils.static VkLayerSettingEXTcreate(long address) Returns a newVkLayerSettingEXTinstance for the specified memory address.static VkLayerSettingEXT.Buffercreate(long address, int capacity) Create aVkLayerSettingEXT.Bufferinstance at the specified memory.static @Nullable VkLayerSettingEXTcreateSafe(long address) static @Nullable VkLayerSettingEXT.BuffercreateSafe(long address, int capacity) static VkLayerSettingEXTmalloc()Returns a newVkLayerSettingEXTinstance allocated withmemAlloc.static VkLayerSettingEXT.Buffermalloc(int capacity) Returns a newVkLayerSettingEXT.Bufferinstance allocated withmemAlloc.static VkLayerSettingEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkLayerSettingEXTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkLayerSettingEXTinstance allocated on the specifiedMemoryStack.static ByteBuffernpLayerName(long struct) Unsafe version ofpLayerName().static voidnpLayerName(long struct, ByteBuffer value) Unsafe version ofpLayerName.static StringnpLayerNameString(long struct) Unsafe version ofpLayerNameString().static ByteBuffernpSettingName(long struct) Unsafe version ofpSettingName().static voidnpSettingName(long struct, ByteBuffer value) Unsafe version ofpSettingName.static StringnpSettingNameString(long struct) Unsafe version ofpSettingNameString().static @Nullable ByteBuffernpValues(long struct, int capacity) Unsafe version ofpValues.static voidnpValues(long struct, @Nullable ByteBuffer value) Unsafe version ofpValues.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnvalueCount(long struct) Unsafe version ofvalueCount().static voidnvalueCount(long struct, int value) Unsafe version ofvalueCount.a pointer to a null-terminated UTF-8 string naming the layer to configure the setting from.pLayerName(ByteBuffer value) Sets the address of the specified encoded string to thepLayerName()field.a pointer to a null-terminated UTF-8 string naming the layer to configure the setting from.a pointer to a null-terminated UTF-8 string naming the setting to configure.pSettingName(ByteBuffer value) Sets the address of the specified encoded string to thepSettingName()field.a pointer to a null-terminated UTF-8 string naming the setting to configure.@Nullable ByteBufferpValues(int capacity) pValues(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thepValues(int)field.set(ByteBuffer pLayerName, ByteBuffer pSettingName, int type, int valueCount, @Nullable ByteBuffer pValues) Initializes this struct with the specified values.set(VkLayerSettingEXT src) Copies the specified struct data to this struct.intsizeof()inttype()aVkLayerSettingTypeEXTvalue specifying the type of thepValuesvalues.type(int value) Sets the specified value to thetype()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.intthe number of values used to configure the layer setting.valueCount(int value) Sets the specified value to thevalueCount()field.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. -
PLAYERNAME
public static final int PLAYERNAMEThe struct member offsets. -
PSETTINGNAME
public static final int PSETTINGNAMEThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
VALUECOUNT
public static final int VALUECOUNTThe struct member offsets. -
PVALUES
public static final int PVALUESThe struct member offsets.
-
-
Constructor Details
-
VkLayerSettingEXT
Creates aVkLayerSettingEXTinstance 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<VkLayerSettingEXT>
-
pLayerName
a pointer to a null-terminated UTF-8 string naming the layer to configure the setting from. -
pLayerNameString
a pointer to a null-terminated UTF-8 string naming the layer to configure the setting from. -
pSettingName
a pointer to a null-terminated UTF-8 string naming the setting to configure. Values ofpSettingNamethat are unknown to the layer are ignored. -
pSettingNameString
a pointer to a null-terminated UTF-8 string naming the setting to configure. Values ofpSettingNamethat are unknown to the layer are ignored. -
type
public int type()aVkLayerSettingTypeEXTvalue specifying the type of thepValuesvalues. -
valueCount
public int valueCount()the number of values used to configure the layer setting. -
pValues
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a pointer to an array of
valueCountvalues of the type indicated bytypeto configure the layer setting.
-
pLayerName
Sets the address of the specified encoded string to thepLayerName()field. -
pSettingName
Sets the address of the specified encoded string to thepSettingName()field. -
type
Sets the specified value to thetype()field. -
valueCount
Sets the specified value to thevalueCount()field. -
pValues
Sets the address of the specifiedByteBufferto thepValues(int)field. -
set
public VkLayerSettingEXT set(ByteBuffer pLayerName, ByteBuffer pSettingName, int type, int valueCount, @Nullable ByteBuffer pValues) 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 newVkLayerSettingEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkLayerSettingEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkLayerSettingEXTinstance allocated withBufferUtils. -
create
Returns a newVkLayerSettingEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkLayerSettingEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkLayerSettingEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkLayerSettingEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkLayerSettingEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkLayerSettingEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkLayerSettingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npLayerName
Unsafe version ofpLayerName(). -
npLayerNameString
Unsafe version ofpLayerNameString(). -
npSettingName
Unsafe version ofpSettingName(). -
npSettingNameString
Unsafe version ofpSettingNameString(). -
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nvalueCount
public static int nvalueCount(long struct) Unsafe version ofvalueCount(). -
npValues
Unsafe version ofpValues. -
npLayerName
Unsafe version ofpLayerName. -
npSettingName
Unsafe version ofpSettingName. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nvalueCount
public static void nvalueCount(long struct, int value) Unsafe version ofvalueCount. -
npValues
Unsafe version ofpValues. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-