Package org.lwjgl.vulkan
Class VkLayerSettingEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkLayerSettingEXT {
char const * pLayerName;
char const * pSettingName;
VkLayerSettingTypeEXT type;
uint32_t valueCount;
void const * pValues;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerSettingEXTcalloc(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, MemoryStack stack) Returns a newVkLayerSettingEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkLayerSettingEXTmalloc(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.pLayerName(ByteBuffer value) Sets the address of the specified encoded string to thepLayerNamefield.pSettingName(ByteBuffer value) Sets the address of the specified encoded string to thepSettingNamefield.@Nullable ByteBufferpValues(int capacity) pValues(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thepValuesfield.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()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intvalueCount(int value) Sets the specified value to thevalueCountfield.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkLayerSettingEXT>
-
pLayerName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepLayerNamefield.
-
pLayerNameString
- Returns:
- the null-terminated string pointed to by the
pLayerNamefield.
-
pSettingName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepSettingNamefield.
-
pSettingNameString
- Returns:
- the null-terminated string pointed to by the
pSettingNamefield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
valueCount
public int valueCount()- Returns:
- the value of the
valueCountfield.
-
pValues
- Returns:
- a
ByteBufferview of the data pointed to by thepValuesfield.
-
pLayerName
Sets the address of the specified encoded string to thepLayerNamefield. -
pSettingName
Sets the address of the specified encoded string to thepSettingNamefield. -
type
Sets the specified value to thetypefield. -
valueCount
Sets the specified value to thevalueCountfield. -
pValues
Sets the address of the specifiedByteBufferto thepValuesfield. -
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
-