Package org.lwjgl.vulkan
Class VkPhysicalDeviceAccelerationStructureFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceAccelerationStructureFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceAccelerationStructureFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the acceleration structure features that can be supported by an implementation.Description
If the
VkPhysicalDeviceAccelerationStructureFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceAccelerationStructureFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceAccelerationStructureFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32accelerationStructure(); VkBool32accelerationStructureCaptureReplay(); VkBool32accelerationStructureIndirectBuild(); VkBool32accelerationStructureHostCommands(); VkBool32descriptorBindingAccelerationStructureUpdateAfterBind(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceAccelerationStructureFeaturesKHR.BufferAn array ofVkPhysicalDeviceAccelerationStructureFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATIONSTRUCTURE
ACCELERATIONSTRUCTURECAPTUREREPLAY
ACCELERATIONSTRUCTUREHOSTCOMMANDS
ACCELERATIONSTRUCTUREINDIRECTBUILDThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intDESCRIPTORBINDINGACCELERATIONSTRUCTUREUPDATEAFTERBIND
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceAccelerationStructureFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccelerationStructure()indicates whether the implementation supports the acceleration structure functionality.VkPhysicalDeviceAccelerationStructureFeaturesKHRaccelerationStructure(boolean value)Sets the specified value to theaccelerationStructure()field.booleanaccelerationStructureCaptureReplay()indicates whether the implementation supports saving and reusing acceleration structure device addresses, e.g.VkPhysicalDeviceAccelerationStructureFeaturesKHRaccelerationStructureCaptureReplay(boolean value)Sets the specified value to theaccelerationStructureCaptureReplay()field.booleanaccelerationStructureHostCommands()indicates whether the implementation supports host side acceleration structure commands, e.g.VkPhysicalDeviceAccelerationStructureFeaturesKHRaccelerationStructureHostCommands(boolean value)Sets the specified value to theaccelerationStructureHostCommands()field.booleanaccelerationStructureIndirectBuild()indicates whether the implementation supports indirect acceleration structure build commands, e.g.VkPhysicalDeviceAccelerationStructureFeaturesKHRaccelerationStructureIndirectBuild(boolean value)Sets the specified value to theaccelerationStructureIndirectBuild()field.static VkPhysicalDeviceAccelerationStructureFeaturesKHRcalloc()Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceAccelerationStructureFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceAccelerationStructureFeaturesKHRcreate()Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceAccelerationStructureFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceAccelerationStructureFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceAccelerationStructureFeaturesKHR.BuffercreateSafe(long address, int capacity)booleandescriptorBindingAccelerationStructureUpdateAfterBind()indicates whether the implementation supports updating acceleration structure descriptors after a set is bound.VkPhysicalDeviceAccelerationStructureFeaturesKHRdescriptorBindingAccelerationStructureUpdateAfterBind(boolean value)Sets the specified value to thedescriptorBindingAccelerationStructureUpdateAfterBind()field.static VkPhysicalDeviceAccelerationStructureFeaturesKHRmalloc()Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceAccelerationStructureFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated on the specifiedMemoryStack.static intnaccelerationStructure(long struct)Unsafe version ofaccelerationStructure().static voidnaccelerationStructure(long struct, int value)Unsafe version ofaccelerationStructure.static intnaccelerationStructureCaptureReplay(long struct)Unsafe version ofaccelerationStructureCaptureReplay().static voidnaccelerationStructureCaptureReplay(long struct, int value)Unsafe version ofaccelerationStructureCaptureReplay.static intnaccelerationStructureHostCommands(long struct)Unsafe version ofaccelerationStructureHostCommands().static voidnaccelerationStructureHostCommands(long struct, int value)Unsafe version ofaccelerationStructureHostCommands.static intnaccelerationStructureIndirectBuild(long struct)Unsafe version ofaccelerationStructureIndirectBuild().static voidnaccelerationStructureIndirectBuild(long struct, int value)Unsafe version ofaccelerationStructureIndirectBuild.static intndescriptorBindingAccelerationStructureUpdateAfterBind(long struct)Unsafe version ofdescriptorBindingAccelerationStructureUpdateAfterBind().static voidndescriptorBindingAccelerationStructureUpdateAfterBind(long struct, int value)Unsafe version ofdescriptorBindingAccelerationStructureUpdateAfterBind.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.VkPhysicalDeviceAccelerationStructureFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceAccelerationStructureFeaturesKHRset(int sType, long pNext, boolean accelerationStructure, boolean accelerationStructureCaptureReplay, boolean accelerationStructureIndirectBuild, boolean accelerationStructureHostCommands, boolean descriptorBindingAccelerationStructureUpdateAfterBind)Initializes this struct with the specified values.VkPhysicalDeviceAccelerationStructureFeaturesKHRset(VkPhysicalDeviceAccelerationStructureFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceAccelerationStructureFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceAccelerationStructureFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHRvalue to thesType()field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, ACCELERATIONSTRUCTURE, ACCELERATIONSTRUCTURECAPTUREREPLAY, ACCELERATIONSTRUCTUREINDIRECTBUILD, ACCELERATIONSTRUCTUREHOSTCOMMANDS, DESCRIPTORBINDINGACCELERATIONSTRUCTUREUPDATEAFTERBIND
The struct member offsets.
-
-
Constructor Detail
-
VkPhysicalDeviceAccelerationStructureFeaturesKHR
public VkPhysicalDeviceAccelerationStructureFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance 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.
-
accelerationStructure
public boolean accelerationStructure()
indicates whether the implementation supports the acceleration structure functionality. See Acceleration Structures.
-
accelerationStructureCaptureReplay
public boolean accelerationStructureCaptureReplay()
indicates whether the implementation supports saving and reusing acceleration structure device addresses, e.g. for trace capture and replay.
-
accelerationStructureIndirectBuild
public boolean accelerationStructureIndirectBuild()
indicates whether the implementation supports indirect acceleration structure build commands, e.g.CmdBuildAccelerationStructuresIndirectKHR.
-
accelerationStructureHostCommands
public boolean accelerationStructureHostCommands()
indicates whether the implementation supports host side acceleration structure commands, e.g.BuildAccelerationStructuresKHR,CopyAccelerationStructureKHR,CopyAccelerationStructureToMemoryKHR,CopyMemoryToAccelerationStructureKHR,WriteAccelerationStructuresPropertiesKHR.
-
descriptorBindingAccelerationStructureUpdateAfterBind
public boolean descriptorBindingAccelerationStructureUpdateAfterBind()
indicates whether the implementation supports updating acceleration structure descriptors after a set is bound. If this feature is not enabled,DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BITmust not be used withDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR.
-
sType
public VkPhysicalDeviceAccelerationStructureFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceAccelerationStructureFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceAccelerationStructureFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
accelerationStructure
public VkPhysicalDeviceAccelerationStructureFeaturesKHR accelerationStructure(boolean value)
Sets the specified value to theaccelerationStructure()field.
-
accelerationStructureCaptureReplay
public VkPhysicalDeviceAccelerationStructureFeaturesKHR accelerationStructureCaptureReplay(boolean value)
Sets the specified value to theaccelerationStructureCaptureReplay()field.
-
accelerationStructureIndirectBuild
public VkPhysicalDeviceAccelerationStructureFeaturesKHR accelerationStructureIndirectBuild(boolean value)
Sets the specified value to theaccelerationStructureIndirectBuild()field.
-
accelerationStructureHostCommands
public VkPhysicalDeviceAccelerationStructureFeaturesKHR accelerationStructureHostCommands(boolean value)
Sets the specified value to theaccelerationStructureHostCommands()field.
-
descriptorBindingAccelerationStructureUpdateAfterBind
public VkPhysicalDeviceAccelerationStructureFeaturesKHR descriptorBindingAccelerationStructureUpdateAfterBind(boolean value)
Sets the specified value to thedescriptorBindingAccelerationStructureUpdateAfterBind()field.
-
set
public VkPhysicalDeviceAccelerationStructureFeaturesKHR set(int sType, long pNext, boolean accelerationStructure, boolean accelerationStructureCaptureReplay, boolean accelerationStructureIndirectBuild, boolean accelerationStructureHostCommands, boolean descriptorBindingAccelerationStructureUpdateAfterBind)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceAccelerationStructureFeaturesKHR set(VkPhysicalDeviceAccelerationStructureFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR malloc()
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR calloc()
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR create()
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceAccelerationStructureFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceAccelerationStructureFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceAccelerationStructureFeaturesKHR.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().
-
naccelerationStructure
public static int naccelerationStructure(long struct)
Unsafe version ofaccelerationStructure().
-
naccelerationStructureCaptureReplay
public static int naccelerationStructureCaptureReplay(long struct)
Unsafe version ofaccelerationStructureCaptureReplay().
-
naccelerationStructureIndirectBuild
public static int naccelerationStructureIndirectBuild(long struct)
Unsafe version ofaccelerationStructureIndirectBuild().
-
naccelerationStructureHostCommands
public static int naccelerationStructureHostCommands(long struct)
Unsafe version ofaccelerationStructureHostCommands().
-
ndescriptorBindingAccelerationStructureUpdateAfterBind
public static int ndescriptorBindingAccelerationStructureUpdateAfterBind(long struct)
Unsafe version ofdescriptorBindingAccelerationStructureUpdateAfterBind().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
naccelerationStructure
public static void naccelerationStructure(long struct, int value)Unsafe version ofaccelerationStructure.
-
naccelerationStructureCaptureReplay
public static void naccelerationStructureCaptureReplay(long struct, int value)Unsafe version ofaccelerationStructureCaptureReplay.
-
naccelerationStructureIndirectBuild
public static void naccelerationStructureIndirectBuild(long struct, int value)Unsafe version ofaccelerationStructureIndirectBuild.
-
naccelerationStructureHostCommands
public static void naccelerationStructureHostCommands(long struct, int value)Unsafe version ofaccelerationStructureHostCommands.
-
ndescriptorBindingAccelerationStructureUpdateAfterBind
public static void ndescriptorBindingAccelerationStructureUpdateAfterBind(long struct, int value)Unsafe version ofdescriptorBindingAccelerationStructureUpdateAfterBind.
-
-