Package org.lwjgl.vulkan
Class VkPhysicalDevice8BitStorageFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevice8BitStorageFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDevice8BitStorageFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing features supported by VK_KHR_8bit_storage.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.storageBuffer8BitAccess
– indicates whether objects in theStorageBuffer
orPhysicalStorageBufferEXT
storage class with theBlock
decoration can have 8-bit integer members. If this feature is not enabled, 8-bit integer members must not be used in such objects. This also indicates whether shader modules can declare theStorageBuffer8BitAccess
capability.uniformAndStorageBuffer8BitAccess
– indicates whether objects in theUniform
storage class with theBlock
decoration and in theStorageBuffer
orPhysicalStorageBufferEXT
storage class with the same decoration can have 8-bit integer members. If this feature is not enabled, 8-bit integer members must not be used in such objects. This also indicates whether shader modules can declare theUniformAndStorageBuffer8BitAccess
capability.storagePushConstant8
– indicates whether objects in thePushConstant
storage class can have 8-bit integer members. If this feature is not enabled, 8-bit integer members must not be used in such objects. This also indicates whether shader modules can declare theStoragePushConstant8
capability.
Layout
struct VkPhysicalDevice8BitStorageFeaturesKHR { VkStructureType sType; void * pNext; VkBool32 storageBuffer8BitAccess; VkBool32 uniformAndStorageBuffer8BitAccess; VkBool32 storagePushConstant8; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
An array ofVkPhysicalDevice8BitStorageFeaturesKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STORAGEBUFFER8BITACCESS
STORAGEPUSHCONSTANT8
STYPE
UNIFORMANDSTORAGEBUFFER8BITACCESSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevice8BitStorageFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevice8BitStorageFeaturesKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevice8BitStorageFeaturesKHR
calloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withmemCalloc
.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
calloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withmemCalloc
.static VkPhysicalDevice8BitStorageFeaturesKHR
callocStack()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR
create()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withBufferUtils
.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
create(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withBufferUtils
.static VkPhysicalDevice8BitStorageFeaturesKHR
create(long address)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance for the specified memory address.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
create(long address, int capacity)
Create aVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance at the specified memory.static VkPhysicalDevice8BitStorageFeaturesKHR
createSafe(long address)
static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
createSafe(long address, int capacity)
static VkPhysicalDevice8BitStorageFeaturesKHR
malloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withmemAlloc
.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
malloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withmemAlloc
.static VkPhysicalDevice8BitStorageFeaturesKHR
mallocStack()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the thread-localMemoryStack
.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDevice8BitStorageFeaturesKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nstorageBuffer8BitAccess(long struct)
Unsafe version ofstorageBuffer8BitAccess()
.static void
nstorageBuffer8BitAccess(long struct, int value)
Unsafe version ofstorageBuffer8BitAccess
.static int
nstoragePushConstant8(long struct)
Unsafe version ofstoragePushConstant8()
.static void
nstoragePushConstant8(long struct, int value)
Unsafe version ofstoragePushConstant8
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nuniformAndStorageBuffer8BitAccess(long struct)
Unsafe version ofuniformAndStorageBuffer8BitAccess()
.static void
nuniformAndStorageBuffer8BitAccess(long struct, int value)
Unsafe version ofuniformAndStorageBuffer8BitAccess
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDevice8BitStorageFeaturesKHR
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDevice8BitStorageFeaturesKHR
set(int sType, long pNext, boolean storageBuffer8BitAccess, boolean uniformAndStorageBuffer8BitAccess, boolean storagePushConstant8)
Initializes this struct with the specified values.VkPhysicalDevice8BitStorageFeaturesKHR
set(VkPhysicalDevice8BitStorageFeaturesKHR src)
Copies the specified struct data to this struct.int
sizeof()
boolean
storageBuffer8BitAccess()
Returns the value of thestorageBuffer8BitAccess
field.VkPhysicalDevice8BitStorageFeaturesKHR
storageBuffer8BitAccess(boolean value)
Sets the specified value to thestorageBuffer8BitAccess
field.boolean
storagePushConstant8()
Returns the value of thestoragePushConstant8
field.VkPhysicalDevice8BitStorageFeaturesKHR
storagePushConstant8(boolean value)
Sets the specified value to thestoragePushConstant8
field.int
sType()
Returns the value of thesType
field.VkPhysicalDevice8BitStorageFeaturesKHR
sType(int value)
Sets the specified value to thesType
field.boolean
uniformAndStorageBuffer8BitAccess()
Returns the value of theuniformAndStorageBuffer8BitAccess
field.VkPhysicalDevice8BitStorageFeaturesKHR
uniformAndStorageBuffer8BitAccess(boolean value)
Sets the specified value to theuniformAndStorageBuffer8BitAccess
field.
-
-
-
Constructor Detail
-
VkPhysicalDevice8BitStorageFeaturesKHR
public VkPhysicalDevice8BitStorageFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevice8BitStorageFeaturesKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
storageBuffer8BitAccess
public boolean storageBuffer8BitAccess()
Returns the value of thestorageBuffer8BitAccess
field.
-
uniformAndStorageBuffer8BitAccess
public boolean uniformAndStorageBuffer8BitAccess()
Returns the value of theuniformAndStorageBuffer8BitAccess
field.
-
storagePushConstant8
public boolean storagePushConstant8()
Returns the value of thestoragePushConstant8
field.
-
sType
public VkPhysicalDevice8BitStorageFeaturesKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDevice8BitStorageFeaturesKHR pNext(long value)
Sets the specified value to thepNext
field.
-
storageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeaturesKHR storageBuffer8BitAccess(boolean value)
Sets the specified value to thestorageBuffer8BitAccess
field.
-
uniformAndStorageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeaturesKHR uniformAndStorageBuffer8BitAccess(boolean value)
Sets the specified value to theuniformAndStorageBuffer8BitAccess
field.
-
storagePushConstant8
public VkPhysicalDevice8BitStorageFeaturesKHR storagePushConstant8(boolean value)
Sets the specified value to thestoragePushConstant8
field.
-
set
public VkPhysicalDevice8BitStorageFeaturesKHR set(int sType, long pNext, boolean storageBuffer8BitAccess, boolean uniformAndStorageBuffer8BitAccess, boolean storagePushConstant8)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevice8BitStorageFeaturesKHR set(VkPhysicalDevice8BitStorageFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevice8BitStorageFeaturesKHR malloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevice8BitStorageFeaturesKHR calloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR create()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR create(long address)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevice8BitStorageFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR mallocStack()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR callocStack()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nstorageBuffer8BitAccess
public static int nstorageBuffer8BitAccess(long struct)
Unsafe version ofstorageBuffer8BitAccess()
.
-
nuniformAndStorageBuffer8BitAccess
public static int nuniformAndStorageBuffer8BitAccess(long struct)
Unsafe version ofuniformAndStorageBuffer8BitAccess()
.
-
nstoragePushConstant8
public static int nstoragePushConstant8(long struct)
Unsafe version ofstoragePushConstant8()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nstorageBuffer8BitAccess
public static void nstorageBuffer8BitAccess(long struct, int value)
Unsafe version ofstorageBuffer8BitAccess
.
-
nuniformAndStorageBuffer8BitAccess
public static void nuniformAndStorageBuffer8BitAccess(long struct, int value)
Unsafe version ofuniformAndStorageBuffer8BitAccess
.
-
nstoragePushConstant8
public static void nstoragePushConstant8(long struct, int value)
Unsafe version ofstoragePushConstant8
.
-
-