Package org.lwjgl.vulkan
Class VkPhysicalDeviceRayQueryFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceRayQueryFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceRayQueryFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the ray query features that can be supported by an implementation.Description
If the
VkPhysicalDeviceRayQueryFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceRayQueryFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR
Layout
struct VkPhysicalDeviceRayQueryFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32rayQuery(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceRayQueryFeaturesKHR.BufferAn array ofVkPhysicalDeviceRayQueryFeaturesKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRayQueryFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceRayQueryFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRayQueryFeaturesKHRcalloc()Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayQueryFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayQueryFeaturesKHRcreate()Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceRayQueryFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceRayQueryFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceRayQueryFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceRayQueryFeaturesKHRmalloc()Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceRayQueryFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRayQueryFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrayQuery(long struct)Unsafe version ofrayQuery().static voidnrayQuery(long struct, int value)Unsafe version ofrayQuery.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.VkPhysicalDeviceRayQueryFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.booleanrayQuery()indicates whether the implementation supports ray query (OpRayQueryProceedKHR) functionality.VkPhysicalDeviceRayQueryFeaturesKHRrayQuery(boolean value)Sets the specified value to therayQuery()field.VkPhysicalDeviceRayQueryFeaturesKHRset(int sType, long pNext, boolean rayQuery)Initializes this struct with the specified values.VkPhysicalDeviceRayQueryFeaturesKHRset(VkPhysicalDeviceRayQueryFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceRayQueryFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceRayQueryFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceRayQueryFeaturesKHR
public VkPhysicalDeviceRayQueryFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRayQueryFeaturesKHRinstance 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.
-
rayQuery
public boolean rayQuery()
indicates whether the implementation supports ray query (OpRayQueryProceedKHR) functionality.
-
sType
public VkPhysicalDeviceRayQueryFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceRayQueryFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceRayQueryFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
rayQuery
public VkPhysicalDeviceRayQueryFeaturesKHR rayQuery(boolean value)
Sets the specified value to therayQuery()field.
-
set
public VkPhysicalDeviceRayQueryFeaturesKHR set(int sType, long pNext, boolean rayQuery)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceRayQueryFeaturesKHR set(VkPhysicalDeviceRayQueryFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceRayQueryFeaturesKHR malloc()
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRayQueryFeaturesKHR calloc()
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRayQueryFeaturesKHR create()
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceRayQueryFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRayQueryFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceRayQueryFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceRayQueryFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayQueryFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayQueryFeaturesKHR.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().
-
nrayQuery
public static int nrayQuery(long struct)
Unsafe version ofrayQuery().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nrayQuery
public static void nrayQuery(long struct, int value)Unsafe version ofrayQuery.
-
-