Package org.lwjgl.vulkan
Class VkPhysicalDevicePipelineCreationCacheControlFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePipelineCreationCacheControlFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT
public class VkPhysicalDevicePipelineCreationCacheControlFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether pipeline cache control can be supported by an implementation.Description
If the
VkPhysicalDevicePipelineCreationCacheControlFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePipelineCreationCacheControlFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDevicePipelineCreationCacheControlFeatures { VkStructureTypesType(); void *pNext(); VkBool32pipelineCreationCacheControl(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePipelineCreationCacheControlFeatures.BufferAn array ofVkPhysicalDevicePipelineCreationCacheControlFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPIPELINECREATIONCACHECONTROL
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePipelineCreationCacheControlFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePipelineCreationCacheControlFeaturescalloc()Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withmemCalloc.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePipelineCreationCacheControlFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePipelineCreationCacheControlFeaturescreate()Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withBufferUtils.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePipelineCreationCacheControlFeaturescreate(long address)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance for the specified memory address.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance at the specified memory.static VkPhysicalDevicePipelineCreationCacheControlFeaturescreateSafe(long address)static VkPhysicalDevicePipelineCreationCacheControlFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePipelineCreationCacheControlFeaturesmalloc()Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withmemAlloc.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePipelineCreationCacheControlFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated on the specifiedMemoryStack.static intnpipelineCreationCacheControl(long struct)Unsafe version ofpipelineCreationCacheControl().static voidnpipelineCreationCacheControl(long struct, int value)Unsafe version ofpipelineCreationCacheControl.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.booleanpipelineCreationCacheControl()indicates that the implementation supports: The following can be used in stext:Vk*PipelineCreateInfo::flags:PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BITPIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BITThe following can be used inVkPipelineCacheCreateInfo::flags:PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BITVkPhysicalDevicePipelineCreationCacheControlFeaturespipelineCreationCacheControl(boolean value)Sets the specified value to thepipelineCreationCacheControl()field.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDevicePipelineCreationCacheControlFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDevicePipelineCreationCacheControlFeaturesset(int sType, long pNext, boolean pipelineCreationCacheControl)Initializes this struct with the specified values.VkPhysicalDevicePipelineCreationCacheControlFeaturesset(VkPhysicalDevicePipelineCreationCacheControlFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePipelineCreationCacheControlFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePipelineCreationCacheControlFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePipelineCreationCacheControlFeatures
public VkPhysicalDevicePipelineCreationCacheControlFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance 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.
-
pipelineCreationCacheControl
public boolean pipelineCreationCacheControl()
indicates that the implementation supports:- The following can be used in stext:Vk*PipelineCreateInfo
::flags: - The following can be used in
VkPipelineCacheCreateInfo::flags:
- The following can be used in stext:Vk*PipelineCreateInfo
-
sType
public VkPhysicalDevicePipelineCreationCacheControlFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePipelineCreationCacheControlFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDevicePipelineCreationCacheControlFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
pipelineCreationCacheControl
public VkPhysicalDevicePipelineCreationCacheControlFeatures pipelineCreationCacheControl(boolean value)
Sets the specified value to thepipelineCreationCacheControl()field.
-
set
public VkPhysicalDevicePipelineCreationCacheControlFeatures set(int sType, long pNext, boolean pipelineCreationCacheControl)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePipelineCreationCacheControlFeatures set(VkPhysicalDevicePipelineCreationCacheControlFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures malloc()
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures calloc()
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePipelineCreationCacheControlFeatures create()
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePipelineCreationCacheControlFeatures create(long address)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePipelineCreationCacheControlFeatures createSafe(long address)
-
malloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePipelineCreationCacheControlFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePipelineCreationCacheControlFeatures.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().
-
npipelineCreationCacheControl
public static int npipelineCreationCacheControl(long struct)
Unsafe version ofpipelineCreationCacheControl().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npipelineCreationCacheControl
public static void npipelineCreationCacheControl(long struct, int value)Unsafe version ofpipelineCreationCacheControl.
-
-