Package org.lwjgl.vulkan
Class VkPhysicalDevice8BitStorageFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevice8BitStorageFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDevice8BitStorageFeaturesKHR
public class VkPhysicalDevice8BitStorageFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by VK_KHR_8bit_storage.Description
If the
VkPhysicalDevice8BitStorageFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevice8BitStorageFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES
Layout
struct VkPhysicalDevice8BitStorageFeatures { VkStructureTypesType(); void *pNext(); VkBool32storageBuffer8BitAccess(); VkBool32uniformAndStorageBuffer8BitAccess(); VkBool32storagePushConstant8(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevice8BitStorageFeatures.BufferAn array ofVkPhysicalDevice8BitStorageFeaturesstructs.
-
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 VkPhysicalDevice8BitStorageFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDevice8BitStorageFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevice8BitStorageFeaturescalloc()Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withmemCalloc.static VkPhysicalDevice8BitStorageFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDevice8BitStorageFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevice8BitStorageFeaturescreate()Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withBufferUtils.static VkPhysicalDevice8BitStorageFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDevice8BitStorageFeaturescreate(long address)Returns a newVkPhysicalDevice8BitStorageFeaturesinstance for the specified memory address.static VkPhysicalDevice8BitStorageFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDevice8BitStorageFeatures.Bufferinstance at the specified memory.static VkPhysicalDevice8BitStorageFeaturescreateSafe(long address)static VkPhysicalDevice8BitStorageFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDevice8BitStorageFeaturesmalloc()Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withmemAlloc.static VkPhysicalDevice8BitStorageFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDevice8BitStorageFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevice8BitStorageFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevice8BitStorageFeaturesinstance 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()NULLor a pointer to a structure extending this structure.VkPhysicalDevice8BitStorageFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDevice8BitStorageFeaturesset(int sType, long pNext, boolean storageBuffer8BitAccess, boolean uniformAndStorageBuffer8BitAccess, boolean storagePushConstant8)Initializes this struct with the specified values.VkPhysicalDevice8BitStorageFeaturesset(VkPhysicalDevice8BitStorageFeatures src)Copies the specified struct data to this struct.intsizeof()booleanstorageBuffer8BitAccess()indicates whether objects in theStorageBuffer,ShaderRecordBufferKHR, orPhysicalStorageBufferstorage class with theBlockdecoration can have 8-bit integer members.VkPhysicalDevice8BitStorageFeaturesstorageBuffer8BitAccess(boolean value)Sets the specified value to thestorageBuffer8BitAccess()field.booleanstoragePushConstant8()indicates whether objects in thePushConstantstorage class can have 8-bit integer members.VkPhysicalDevice8BitStorageFeaturesstoragePushConstant8(boolean value)Sets the specified value to thestoragePushConstant8()field.intsType()the type of this structure.VkPhysicalDevice8BitStorageFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDevice8BitStorageFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURESvalue to thesType()field.booleanuniformAndStorageBuffer8BitAccess()indicates whether objects in theUniformstorage class with theBlockdecoration can have 8-bit integer members.VkPhysicalDevice8BitStorageFeaturesuniformAndStorageBuffer8BitAccess(boolean value)Sets the specified value to theuniformAndStorageBuffer8BitAccess()field.
-
-
-
Constructor Detail
-
VkPhysicalDevice8BitStorageFeatures
public VkPhysicalDevice8BitStorageFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDevice8BitStorageFeaturesinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
storageBuffer8BitAccess
public boolean storageBuffer8BitAccess()
indicates whether objects in theStorageBuffer,ShaderRecordBufferKHR, orPhysicalStorageBufferstorage 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
public boolean uniformAndStorageBuffer8BitAccess()
indicates whether objects in theUniformstorage 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 theUniformAndStorageBuffer8BitAccesscapability.
-
storagePushConstant8
public boolean 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.
-
sType
public VkPhysicalDevice8BitStorageFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevice8BitStorageFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDevice8BitStorageFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
storageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeatures storageBuffer8BitAccess(boolean value)
Sets the specified value to thestorageBuffer8BitAccess()field.
-
uniformAndStorageBuffer8BitAccess
public VkPhysicalDevice8BitStorageFeatures uniformAndStorageBuffer8BitAccess(boolean value)
Sets the specified value to theuniformAndStorageBuffer8BitAccess()field.
-
storagePushConstant8
public VkPhysicalDevice8BitStorageFeatures storagePushConstant8(boolean value)
Sets the specified value to thestoragePushConstant8()field.
-
set
public VkPhysicalDevice8BitStorageFeatures set(int sType, long pNext, boolean storageBuffer8BitAccess, boolean uniformAndStorageBuffer8BitAccess, boolean storagePushConstant8)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevice8BitStorageFeatures set(VkPhysicalDevice8BitStorageFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevice8BitStorageFeatures malloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevice8BitStorageFeatures calloc()
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevice8BitStorageFeatures create()
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevice8BitStorageFeatures create(long address)
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevice8BitStorageFeatures createSafe(long address)
-
malloc
public static VkPhysicalDevice8BitStorageFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevice8BitStorageFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevice8BitStorageFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDevice8BitStorageFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevice8BitStorageFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevice8BitStorageFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevice8BitStorageFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevice8BitStorageFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevice8BitStorageFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevice8BitStorageFeatures.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.
-
-