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.NativeResourceStructure describing features supported by VK_KHR_8bit_storage.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.storageBuffer8BitAccess– indicates whether objects in theStorageBufferorPhysicalStorageBufferEXTstorage class with theBlockdecoration 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 theStorageBuffer8BitAccesscapability.uniformAndStorageBuffer8BitAccess– indicates whether objects in theUniformstorage class with theBlockdecoration and in theStorageBufferorPhysicalStorageBufferEXTstorage 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 theUniformAndStorageBuffer8BitAccesscapability.storagePushConstant8– indicates whether objects in thePushConstantstorage 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 theStoragePushConstant8capability.
Layout
struct VkPhysicalDevice8BitStorageFeaturesKHR { VkStructureType sType; void * pNext; VkBool32 storageBuffer8BitAccess; VkBool32 uniformAndStorageBuffer8BitAccess; VkBool32 storagePushConstant8; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevice8BitStorageFeaturesKHR.BufferAn array ofVkPhysicalDevice8BitStorageFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTORAGEBUFFER8BITACCESS
STORAGEPUSHCONSTANT8
STYPE
UNIFORMANDSTORAGEBUFFER8BITACCESSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevice8BitStorageFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDevice8BitStorageFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevice8BitStorageFeaturesKHRcalloc()Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDevice8BitStorageFeaturesKHRcallocStack()Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturesKHRcreate()Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDevice8BitStorageFeaturesKHRcreate(long address)Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance for the specified memory address.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDevice8BitStorageFeaturesKHRcreateSafe(long address)static VkPhysicalDevice8BitStorageFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDevice8BitStorageFeaturesKHRmalloc()Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDevice8BitStorageFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDevice8BitStorageFeaturesKHRmallocStack()Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDevice8BitStorageFeaturesKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDevice8BitStorageFeaturesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevice8BitStorageFeaturesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstorageBuffer8BitAccess(long struct)Unsafe version ofstorageBuffer8BitAccess().static voidnstorageBuffer8BitAccess(long struct, int value)Unsafe version ofstorageBuffer8BitAccess.static intnstoragePushConstant8(long struct)Unsafe version ofstoragePushConstant8().static voidnstoragePushConstant8(long struct, int value)Unsafe version ofstoragePushConstant8.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnuniformAndStorageBuffer8BitAccess(long struct)Unsafe version ofuniformAndStorageBuffer8BitAccess().static voidnuniformAndStorageBuffer8BitAccess(long struct, int value)Unsafe version ofuniformAndStorageBuffer8BitAccess.longpNext()Returns the value of thepNextfield.VkPhysicalDevice8BitStorageFeaturesKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDevice8BitStorageFeaturesKHRset(int sType, long pNext, boolean storageBuffer8BitAccess, boolean uniformAndStorageBuffer8BitAccess, boolean storagePushConstant8)Initializes this struct with the specified values.VkPhysicalDevice8BitStorageFeaturesKHRset(VkPhysicalDevice8BitStorageFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()booleanstorageBuffer8BitAccess()Returns the value of thestorageBuffer8BitAccessfield.VkPhysicalDevice8BitStorageFeaturesKHRstorageBuffer8BitAccess(boolean value)Sets the specified value to thestorageBuffer8BitAccessfield.booleanstoragePushConstant8()Returns the value of thestoragePushConstant8field.VkPhysicalDevice8BitStorageFeaturesKHRstoragePushConstant8(boolean value)Sets the specified value to thestoragePushConstant8field.intsType()Returns the value of thesTypefield.VkPhysicalDevice8BitStorageFeaturesKHRsType(int value)Sets the specified value to thesTypefield.booleanuniformAndStorageBuffer8BitAccess()Returns the value of theuniformAndStorageBuffer8BitAccessfield.VkPhysicalDevice8BitStorageFeaturesKHRuniformAndStorageBuffer8BitAccess(boolean value)Sets the specified value to theuniformAndStorageBuffer8BitAccessfield.
-
-
-
Constructor Detail
-
VkPhysicalDevice8BitStorageFeaturesKHR
public VkPhysicalDevice8BitStorageFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevice8BitStorageFeaturesKHRinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
storageBuffer8BitAccess
public boolean storageBuffer8BitAccess()
Returns the value of thestorageBuffer8BitAccessfield.
-
uniformAndStorageBuffer8BitAccess
public boolean uniformAndStorageBuffer8BitAccess()
Returns the value of theuniformAndStorageBuffer8BitAccessfield.
-
storagePushConstant8
public boolean storagePushConstant8()
Returns the value of thestoragePushConstant8field.
-
sType
public VkPhysicalDevice8BitStorageFeaturesKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDevice8BitStorageFeaturesKHR pNext(long value)
Sets the specified value to thepNextfield.
-
storageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeaturesKHR storageBuffer8BitAccess(boolean value)
Sets the specified value to thestorageBuffer8BitAccessfield.
-
uniformAndStorageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeaturesKHR uniformAndStorageBuffer8BitAccess(boolean value)
Sets the specified value to theuniformAndStorageBuffer8BitAccessfield.
-
storagePushConstant8
public VkPhysicalDevice8BitStorageFeaturesKHR storagePushConstant8(boolean value)
Sets the specified value to thestoragePushConstant8field.
-
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 newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevice8BitStorageFeaturesKHR calloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR create()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR create(long address)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevice8BitStorageFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance 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 newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR callocStack()
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDevice8BitStorageFeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-