Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceFloat16Int8FeaturesKHR
public class VkPhysicalDeviceShaderFloat16Int8FeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing features supported by VK_KHR_shader_float16_int8.Valid Usage (Implicit)
Member documentation
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 theFloat16
capability.shaderInt8
– indicates whether 8-bit integers (signed and unsigned) are supported in shader code. This also indicates whether shader modules can declare theInt8
capability.
Layout
struct VkPhysicalDeviceShaderFloat16Int8FeaturesKHR { VkStructureType sType; void * pNext; VkBool32 shaderFloat16; VkBool32 shaderInt8; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
An array ofVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
SHADERFLOAT16
SHADERINT8The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
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 VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
calloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withmemCalloc
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
callocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
create()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withBufferUtils
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
create(long address)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance for the specified memory address.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance at the specified memory.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
createSafe(long address)
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
malloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withmemAlloc
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
mallocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
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
nshaderFloat16(long struct)
Unsafe version ofshaderFloat16()
.static void
nshaderFloat16(long struct, int value)
Unsafe version ofshaderFloat16
.static int
nshaderInt8(long struct)
Unsafe version ofshaderInt8()
.static void
nshaderInt8(long struct, int value)
Unsafe version ofshaderInt8
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
pNext(long value)
Sets the specified value to thepNext
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 theshaderFloat16
field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
shaderFloat16(boolean value)
Sets the specified value to theshaderFloat16
field.boolean
shaderInt8()
Returns the value of theshaderInt8
field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
shaderInt8(boolean value)
Sets the specified value to theshaderInt8
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
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.
-
shaderFloat16
public boolean shaderFloat16()
Returns the value of theshaderFloat16
field.
-
shaderInt8
public boolean shaderInt8()
Returns the value of theshaderInt8
field.
-
sType
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR pNext(long value)
Sets the specified value to thepNext
field.
-
shaderFloat16
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderFloat16(boolean value)
Sets the specified value to theshaderFloat16
field.
-
shaderInt8
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR shaderInt8(boolean value)
Sets the specified value to theshaderInt8
field.
-
set
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(int sType, long pNext, boolean shaderFloat16, boolean shaderInt8)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderFloat16Int8FeaturesKHR set(VkPhysicalDeviceShaderFloat16Int8FeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR malloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR calloc()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR create(long address)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack()
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderFloat16Int8FeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderFloat16Int8FeaturesKHR.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()
.
-
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
.
-
-