Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderFloat16Int8Features
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderFloat16Int8Features
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceFloat16Int8FeaturesKHR,VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
public class VkPhysicalDeviceShaderFloat16Int8Features extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by VK_KHR_shader_float16_int8.Description
If the
VkPhysicalDeviceShaderFloat16Int8Featuresstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceShaderFloat16Int8Featurescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceShaderFloat16Int8Features { VkStructureTypesType(); void *pNext(); VkBool32shaderFloat16(); VkBool32shaderInt8(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderFloat16Int8Features.BufferAn array ofVkPhysicalDeviceShaderFloat16Int8Featuresstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERFLOAT16
SHADERINT8The struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderFloat16Int8Features(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderFloat16Int8Featuresinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShaderFloat16Int8Featurescalloc()Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withmemCalloc.static VkPhysicalDeviceShaderFloat16Int8Features.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderFloat16Int8Features.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8Featurescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8Featurescreate()Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withBufferUtils.static VkPhysicalDeviceShaderFloat16Int8Features.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderFloat16Int8Featurescreate(long address)Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance for the specified memory address.static VkPhysicalDeviceShaderFloat16Int8Features.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderFloat16Int8FeaturescreateSafe(long address)static VkPhysicalDeviceShaderFloat16Int8Features.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderFloat16Int8Featuresmalloc()Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withmemAlloc.static VkPhysicalDeviceShaderFloat16Int8Features.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderFloat16Int8Features.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderFloat16Int8Featuresmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderFloat16(long struct)Unsafe version ofshaderFloat16().static voidnshaderFloat16(long struct, int value)Unsafe version ofshaderFloat16.static intnshaderInt8(long struct)Unsafe version ofshaderInt8().static voidnshaderInt8(long struct, int value)Unsafe version ofshaderInt8.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceShaderFloat16Int8FeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShaderFloat16Int8Featuresset(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)Initializes this struct with the specified values.VkPhysicalDeviceShaderFloat16Int8Featuresset(VkPhysicalDeviceShaderFloat16Int8Features src)Copies the specified struct data to this struct.booleanshaderFloat16()indicates whether 16-bit floats (halfs) are supported in shader code.VkPhysicalDeviceShaderFloat16Int8FeaturesshaderFloat16(boolean value)Sets the specified value to theshaderFloat16()field.booleanshaderInt8()indicates whether 8-bit integers (signed and unsigned) are supported in shader code.VkPhysicalDeviceShaderFloat16Int8FeaturesshaderInt8(boolean value)Sets the specified value to theshaderInt8()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShaderFloat16Int8FeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShaderFloat16Int8FeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderFloat16Int8Features
public VkPhysicalDeviceShaderFloat16Int8Features(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderFloat16Int8Featuresinstance 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.
-
shaderFloat16
public boolean shaderFloat16()
indicates whether 16-bit floats (halfs) are supported in shader code. This also indicates whether shader modules can declare theFloat16capability. However, this only enables a subset of the storage classes that SPIR-V allows for theFloat16SPIR-V capability: Declaring and using 16-bit floats in thePrivate,Workgroup(for non-Block variables), andFunctionstorage classes is enabled, while declaring them in the interface storage classes (e.g.,UniformConstant,Uniform,StorageBuffer,Input,Output, andPushConstant) is not enabled.
-
shaderInt8
public boolean shaderInt8()
indicates whether 8-bit integers (signed and unsigned) are supported in shader code. This also indicates whether shader modules can declare theInt8capability. However, this only enables a subset of the storage classes that SPIR-V allows for theInt8SPIR-V capability: Declaring and using 8-bit integers in thePrivate,Workgroup(for non-Block variables), andFunctionstorage classes is enabled, while declaring them in the interface storage classes (e.g.,UniformConstant,Uniform,StorageBuffer,Input,Output, andPushConstant) is not enabled.
-
sType
public VkPhysicalDeviceShaderFloat16Int8Features sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShaderFloat16Int8Features sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShaderFloat16Int8Features pNext(long value)
Sets the specified value to thepNext()field.
-
shaderFloat16
public VkPhysicalDeviceShaderFloat16Int8Features shaderFloat16(boolean value)
Sets the specified value to theshaderFloat16()field.
-
shaderInt8
public VkPhysicalDeviceShaderFloat16Int8Features shaderInt8(boolean value)
Sets the specified value to theshaderInt8()field.
-
set
public VkPhysicalDeviceShaderFloat16Int8Features set(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderFloat16Int8Features set(VkPhysicalDeviceShaderFloat16Int8Features src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8Features malloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8Features calloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderFloat16Int8Features create()
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderFloat16Int8Features create(long address)
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8Features createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8Features malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8Features calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8Features.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8Features.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8Features.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().
-
nshaderFloat16
public static int nshaderFloat16(long struct)
Unsafe version ofshaderFloat16().
-
nshaderInt8
public static int nshaderInt8(long struct)
Unsafe version ofshaderInt8().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderFloat16
public static void nshaderFloat16(long struct, int value)Unsafe version ofshaderFloat16.
-
nshaderInt8
public static void nshaderInt8(long struct, int value)Unsafe version ofshaderInt8.
-
-