public class VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.shaderFloat16 – indicates whether 16-bit floats (halfs) are supported in shader code. This also indicates whether shader modules can declare the Float16 capability. However, this only enables a subset of the storage classes that SPIR-V allows for the Float16 SPIR-V capability: Declaring and using 16-bit floats in the Private, Workgroup, and Function storage classes is enabled, while declaring them in the interface storage classes (e.g., UniformConstant, Uniform, StorageBuffer, Input, Output, and PushConstant) is not enabled.shaderInt8 – indicates whether 8-bit integers (signed and unsigned) are supported in shader code. This also indicates whether shader modules can declare the Int8 capability. However, this only enables a subset of the storage classes that SPIR-V allows for the Int8 SPIR-V capability: Declaring and using 8-bit integers in the Private, Workgroup, and Function storage classes is enabled, while declaring them in the interface storage classes (e.g., UniformConstant, Uniform, StorageBuffer, Input, Output, and PushConstant) is not enabled.
struct VkPhysicalDeviceShaderFloat16Int8FeaturesKHR {
VkStructureType sType;
void * pNext;
VkBool32 shaderFloat16;
VkBool32 shaderInt8;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
An array of
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SHADERFLOAT16
The struct member offsets.
|
static int |
SHADERINT8
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
calloc()
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with memCalloc. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
callocStack()
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
create()
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
create(long address)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance for the specified memory address. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance at the specified memory. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
createSafe(long address)
|
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
malloc()
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with memAlloc. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
mallocStack()
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nshaderFloat16(long struct)
Unsafe version of
shaderFloat16(). |
static void |
nshaderFloat16(long struct,
int value)
Unsafe version of
shaderFloat16. |
static int |
nshaderInt8(long struct)
Unsafe version of
shaderInt8(). |
static void |
nshaderInt8(long struct,
int value)
Unsafe version of
shaderInt8. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
set(int sType,
long pNext,
boolean shaderFloat16,
boolean shaderInt8)
Initializes this struct with the specified values.
|
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
set(VkPhysicalDeviceShaderFloat16Int8FeaturesKHR src)
Copies the specified struct data to this struct.
|
boolean |
shaderFloat16()
Returns the value of the
shaderFloat16 field. |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
shaderFloat16(boolean value)
Sets the specified value to the
shaderFloat16 field. |
boolean |
shaderInt8()
Returns the value of the
shaderInt8 field. |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
shaderInt8(boolean value)
Sets the specified value to the
shaderInt8 field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SHADERFLOAT16
public static final int SHADERINT8
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public boolean shaderFloat16()
shaderFloat16 field.public boolean shaderInt8()
shaderInt8 field.public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR sType(int value)
sType field.public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR pNext(long value)
pNext field.public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderFloat16(boolean value)
shaderFloat16 field.public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderInt8(boolean value)
shaderInt8 field.public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(VkPhysicalDeviceShaderFloat16Int8FeaturesKHR src)
src - the source structpublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR malloc()
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR calloc()
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create()
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated with BufferUtils.public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create(long address)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance for the specified memory address.@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR createSafe(long address)
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer malloc(int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer calloc(int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(long address, int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack()
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack()
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nshaderFloat16(long struct)
shaderFloat16().public static int nshaderInt8(long struct)
shaderInt8().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nshaderFloat16(long struct,
int value)
shaderFloat16.public static void nshaderInt8(long struct,
int value)
shaderInt8.Copyright LWJGL. All Rights Reserved. License terms.