Package org.lwjgl.vulkan
Class VkPhysicalDeviceFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFeatures
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPhysicalDeviceFeatures extends Struct
Khronos Reference Page
Vulkan SpecificationContains a feature flag for each of the fine-grained features that may be supported by an implementation.
Valid Usage
- If any member of this structure is
FALSE
, as returned byGetPhysicalDeviceFeatures
, then it must beFALSE
when passed as part of theVkDeviceCreateInfo
struct when creating a device
Member documentation
robustBufferAccess
– indicates that out of bounds accesses to buffers via shader operations are well-definedfullDrawIndexUint32
– indicates the full 32-bit range of indices is supported for indexed draw calls when using a VkIndexType ofINDEX_TYPE_UINT32
imageCubeArray
– indicates whether image views with aVkImageViewType
ofIMAGE_VIEW_TYPE_CUBE_ARRAY
can be created, and that the corresponding SampledCubeArray and ImageCubeArray SPIR-V capabilities can be used in shader codeindependentBlend
– indicates whether theVkPipelineColorBlendAttachmentState
settings are controlled independently per-attachmentgeometryShader
– indicates whether geometry shaders are supportedtessellationShader
– indicates whether tessellation control and evaluation shaders are supportedsampleRateShading
– indicates whether per-sample shading and multisample interpolation are supporteddualSrcBlend
– indicates whether blend operations which take two sources are supportedlogicOp
– indicates whether logic operations are supportedmultiDrawIndirect
– indicates whether multiple draw indirect is supporteddrawIndirectFirstInstance
– indicates whether indirect draw calls support thefirstInstance
parameterdepthClamp
– indicates whether depth clamping is supporteddepthBiasClamp
– indicates whether depth bias clamping is supportedfillModeNonSolid
– indicates whether point and wireframe fill modes are supporteddepthBounds
– indicates whether depth bounds tests are supportedwideLines
– indicates whether lines with width other than 1.0 are supportedlargePoints
– indicates whether points with size greater than 1.0 are supportedalphaToOne
– indicates whether the implementation is able to replace the alpha value of the color fragment output from the fragment shader with the maximum representable alpha value for fixed-point colors or 1.0 for floating-point colorsmultiViewport
– indicates whether more than one viewport is supportedsamplerAnisotropy
– indicates whether anisotropic filtering is supportedtextureCompressionETC2
– indicates whether the ETC2 and EAC compressed texture formats are supportedtextureCompressionASTC_LDR
– indicates whether the ASTC LDR compressed texture formats are supportedtextureCompressionBC
– indicates whether the BC compressed texture formats are supportedocclusionQueryPrecise
– indicates whether occlusion queries returning actual sample counts are supportedpipelineStatisticsQuery
– indicates whether the pipeline statistics queries are supportedvertexPipelineStoresAndAtomics
– indicates whether storage buffers and images support stores and atomic operations in the vertex, tessellation, and geometry shader stagesfragmentStoresAndAtomics
– indicates whether storage buffers and images support stores and atomic operations in the fragment shader stageshaderTessellationAndGeometryPointSize
– indicates whether thePointSize
built-in decoration is available in the tessellation control, tessellation evaluation, and geometry shader stagesshaderImageGatherExtended
– indicates whether the extended set of image gather instructions are available in shader codeshaderStorageImageExtendedFormats
– indicates whether the extended storage image formats are available in shader codeshaderStorageImageMultisample
– indicates whether multisampled storage images are supportedshaderStorageImageReadWithoutFormat
– indicates whether storage images require a format qualifier to be specified when reading from storage imagesshaderStorageImageWriteWithoutFormat
– indicates whether storage images require a format qualifier to be specified when writing to storage imagesshaderUniformBufferArrayDynamicIndexing
– indicates whether arrays of uniform buffers can be indexed by dynamically uniform integer expressions in shader codeshaderSampledImageArrayDynamicIndexing
– indicates whether arrays of samplers or sampled images can be indexed by dynamically uniform integer expressions in shader codeshaderStorageBufferArrayDynamicIndexing
– indicates whether arrays of storage buffers can be indexed by dynamically uniform integer expressions in shader codeshaderStorageImageArrayDynamicIndexing
– indicates whether arrays of storage images can be indexed by dynamically uniform integer expressions in shader codeshaderClipDistance
– indicates whether clip distances are supported in shader codeshaderCullDistance
– indicates whether cull distances are supported in shader codeshaderFloat64
– indicates whether 64-bit floats (doubles) are supported in shader codeshaderInt64
– indicates whether 64-bit integers (signed and unsigned) are supported in shader codeshaderInt16
– indicates whether 16-bit integers (signed and unsigned) are supported in shader codeshaderResourceResidency
– indicates whether image operations that return resource residency information are supported in shader codeshaderResourceMinLod
– indicates whether image operations that specify the minimum resource level-of-detail (LOD) are supported in shader codesparseBinding
– indicates whether resource memory can be managed at opaque sparse block level instead of at the object levelsparseResidencyBuffer
– indicates whether the device can access partially resident bufferssparseResidencyImage2D
– indicates whether the device can access partially resident 2D images with 1 sample per pixelsparseResidencyImage3D
– indicates whether the device can access partially resident 3D imagessparseResidency2Samples
– indicates whether the physical device can access partially resident 2D images with 2 samples per pixelsparseResidency4Samples
– indicates whether the physical device can access partially resident 2D images with 4 samples per pixelsparseResidency8Samples
– indicates whether the physical device can access partially resident 2D images with 8 samples per pixelsparseResidency16Samples
– indicates whether the physical device can access partially resident 2D images with 16 samples per pixelsparseResidencyAliased
– indicates whether the physical device can correctly access data aliased into multiple locationsvariableMultisampleRate
– indicates whether all pipelines that will be bound to a command buffer during a subpass with no attachments must have the same value forVkPipelineMultisampleStateCreateInfo
::rasterizationSamples
inheritedQueries
– indicates whether a secondary command buffer may be executed while a query is active
Layout
struct VkPhysicalDeviceFeatures { VkBool32 robustBufferAccess; VkBool32 fullDrawIndexUint32; VkBool32 imageCubeArray; VkBool32 independentBlend; VkBool32 geometryShader; VkBool32 tessellationShader; VkBool32 sampleRateShading; VkBool32 dualSrcBlend; VkBool32 logicOp; VkBool32 multiDrawIndirect; VkBool32 drawIndirectFirstInstance; VkBool32 depthClamp; VkBool32 depthBiasClamp; VkBool32 fillModeNonSolid; VkBool32 depthBounds; VkBool32 wideLines; VkBool32 largePoints; VkBool32 alphaToOne; VkBool32 multiViewport; VkBool32 samplerAnisotropy; VkBool32 textureCompressionETC2; VkBool32 textureCompressionASTC_LDR; VkBool32 textureCompressionBC; VkBool32 occlusionQueryPrecise; VkBool32 pipelineStatisticsQuery; VkBool32 vertexPipelineStoresAndAtomics; VkBool32 fragmentStoresAndAtomics; VkBool32 shaderTessellationAndGeometryPointSize; VkBool32 shaderImageGatherExtended; VkBool32 shaderStorageImageExtendedFormats; VkBool32 shaderStorageImageMultisample; VkBool32 shaderStorageImageReadWithoutFormat; VkBool32 shaderStorageImageWriteWithoutFormat; VkBool32 shaderUniformBufferArrayDynamicIndexing; VkBool32 shaderSampledImageArrayDynamicIndexing; VkBool32 shaderStorageBufferArrayDynamicIndexing; VkBool32 shaderStorageImageArrayDynamicIndexing; VkBool32 shaderClipDistance; VkBool32 shaderCullDistance; VkBool32 shaderFloat64; VkBool32 shaderInt64; VkBool32 shaderInt16; VkBool32 shaderResourceResidency; VkBool32 shaderResourceMinLod; VkBool32 sparseBinding; VkBool32 sparseResidencyBuffer; VkBool32 sparseResidencyImage2D; VkBool32 sparseResidencyImage3D; VkBool32 sparseResidency2Samples; VkBool32 sparseResidency4Samples; VkBool32 sparseResidency8Samples; VkBool32 sparseResidency16Samples; VkBool32 sparseResidencyAliased; VkBool32 variableMultisampleRate; VkBool32 inheritedQueries; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkPhysicalDeviceFeatures.Buffer
An array ofVkPhysicalDeviceFeatures
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPhysicalDeviceFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFeatures
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
alphaToOne()
Returns the value of thealphaToOne
field.VkPhysicalDeviceFeatures
alphaToOne(int value)
Sets the specified value to thealphaToOne
field.static VkPhysicalDeviceFeatures
calloc()
Returns a newVkPhysicalDeviceFeatures
instance allocated withmemCalloc
.static VkPhysicalDeviceFeatures.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceFeatures
callocStack()
Returns a newVkPhysicalDeviceFeatures
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFeatures.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFeatures.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFeatures
callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceFeatures
create()
Returns a newVkPhysicalDeviceFeatures
instance allocated withBufferUtils
.static VkPhysicalDeviceFeatures.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceFeatures
create(long address)
Returns a newVkPhysicalDeviceFeatures
instance for the specified memory address ornull
if the address isNULL
.static VkPhysicalDeviceFeatures.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceFeatures.Buffer
instance at the specified memory.int
depthBiasClamp()
Returns the value of thedepthBiasClamp
field.VkPhysicalDeviceFeatures
depthBiasClamp(int value)
Sets the specified value to thedepthBiasClamp
field.int
depthBounds()
Returns the value of thedepthBounds
field.VkPhysicalDeviceFeatures
depthBounds(int value)
Sets the specified value to thedepthBounds
field.int
depthClamp()
Returns the value of thedepthClamp
field.VkPhysicalDeviceFeatures
depthClamp(int value)
Sets the specified value to thedepthClamp
field.int
drawIndirectFirstInstance()
Returns the value of thedrawIndirectFirstInstance
field.VkPhysicalDeviceFeatures
drawIndirectFirstInstance(int value)
Sets the specified value to thedrawIndirectFirstInstance
field.int
dualSrcBlend()
Returns the value of thedualSrcBlend
field.VkPhysicalDeviceFeatures
dualSrcBlend(int value)
Sets the specified value to thedualSrcBlend
field.int
fillModeNonSolid()
Returns the value of thefillModeNonSolid
field.VkPhysicalDeviceFeatures
fillModeNonSolid(int value)
Sets the specified value to thefillModeNonSolid
field.int
fragmentStoresAndAtomics()
Returns the value of thefragmentStoresAndAtomics
field.VkPhysicalDeviceFeatures
fragmentStoresAndAtomics(int value)
Sets the specified value to thefragmentStoresAndAtomics
field.int
fullDrawIndexUint32()
Returns the value of thefullDrawIndexUint32
field.VkPhysicalDeviceFeatures
fullDrawIndexUint32(int value)
Sets the specified value to thefullDrawIndexUint32
field.int
geometryShader()
Returns the value of thegeometryShader
field.VkPhysicalDeviceFeatures
geometryShader(int value)
Sets the specified value to thegeometryShader
field.int
imageCubeArray()
Returns the value of theimageCubeArray
field.VkPhysicalDeviceFeatures
imageCubeArray(int value)
Sets the specified value to theimageCubeArray
field.int
independentBlend()
Returns the value of theindependentBlend
field.VkPhysicalDeviceFeatures
independentBlend(int value)
Sets the specified value to theindependentBlend
field.int
inheritedQueries()
Returns the value of theinheritedQueries
field.VkPhysicalDeviceFeatures
inheritedQueries(int value)
Sets the specified value to theinheritedQueries
field.int
largePoints()
Returns the value of thelargePoints
field.VkPhysicalDeviceFeatures
largePoints(int value)
Sets the specified value to thelargePoints
field.int
logicOp()
Returns the value of thelogicOp
field.VkPhysicalDeviceFeatures
logicOp(int value)
Sets the specified value to thelogicOp
field.static VkPhysicalDeviceFeatures
malloc()
Returns a newVkPhysicalDeviceFeatures
instance allocated withmemAlloc
.static VkPhysicalDeviceFeatures.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceFeatures
mallocStack()
Returns a newVkPhysicalDeviceFeatures
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFeatures.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceFeatures.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceFeatures
mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures
instance allocated on the specifiedMemoryStack
.int
multiDrawIndirect()
Returns the value of themultiDrawIndirect
field.VkPhysicalDeviceFeatures
multiDrawIndirect(int value)
Sets the specified value to themultiDrawIndirect
field.int
multiViewport()
Returns the value of themultiViewport
field.VkPhysicalDeviceFeatures
multiViewport(int value)
Sets the specified value to themultiViewport
field.VkPhysicalDeviceFeatures
nset(long struct)
Unsafe version ofset
.int
occlusionQueryPrecise()
Returns the value of theocclusionQueryPrecise
field.VkPhysicalDeviceFeatures
occlusionQueryPrecise(int value)
Sets the specified value to theocclusionQueryPrecise
field.int
pipelineStatisticsQuery()
Returns the value of thepipelineStatisticsQuery
field.VkPhysicalDeviceFeatures
pipelineStatisticsQuery(int value)
Sets the specified value to thepipelineStatisticsQuery
field.int
robustBufferAccess()
Returns the value of therobustBufferAccess
field.VkPhysicalDeviceFeatures
robustBufferAccess(int value)
Sets the specified value to therobustBufferAccess
field.int
samplerAnisotropy()
Returns the value of thesamplerAnisotropy
field.VkPhysicalDeviceFeatures
samplerAnisotropy(int value)
Sets the specified value to thesamplerAnisotropy
field.int
sampleRateShading()
Returns the value of thesampleRateShading
field.VkPhysicalDeviceFeatures
sampleRateShading(int value)
Sets the specified value to thesampleRateShading
field.VkPhysicalDeviceFeatures
set(int robustBufferAccess, int fullDrawIndexUint32, int imageCubeArray, int independentBlend, int geometryShader, int tessellationShader, int sampleRateShading, int dualSrcBlend, int logicOp, int multiDrawIndirect, int drawIndirectFirstInstance, int depthClamp, int depthBiasClamp, int fillModeNonSolid, int depthBounds, int wideLines, int largePoints, int alphaToOne, int multiViewport, int samplerAnisotropy, int textureCompressionETC2, int textureCompressionASTC_LDR, int textureCompressionBC, int occlusionQueryPrecise, int pipelineStatisticsQuery, int vertexPipelineStoresAndAtomics, int fragmentStoresAndAtomics, int shaderTessellationAndGeometryPointSize, int shaderImageGatherExtended, int shaderStorageImageExtendedFormats, int shaderStorageImageMultisample, int shaderStorageImageReadWithoutFormat, int shaderStorageImageWriteWithoutFormat, int shaderUniformBufferArrayDynamicIndexing, int shaderSampledImageArrayDynamicIndexing, int shaderStorageBufferArrayDynamicIndexing, int shaderStorageImageArrayDynamicIndexing, int shaderClipDistance, int shaderCullDistance, int shaderFloat64, int shaderInt64, int shaderInt16, int shaderResourceResidency, int shaderResourceMinLod, int sparseBinding, int sparseResidencyBuffer, int sparseResidencyImage2D, int sparseResidencyImage3D, int sparseResidency2Samples, int sparseResidency4Samples, int sparseResidency8Samples, int sparseResidency16Samples, int sparseResidencyAliased, int variableMultisampleRate, int inheritedQueries)
Initializes this struct with the specified values.VkPhysicalDeviceFeatures
set(VkPhysicalDeviceFeatures src)
Copies the specified struct data to this struct.int
shaderClipDistance()
Returns the value of theshaderClipDistance
field.VkPhysicalDeviceFeatures
shaderClipDistance(int value)
Sets the specified value to theshaderClipDistance
field.int
shaderCullDistance()
Returns the value of theshaderCullDistance
field.VkPhysicalDeviceFeatures
shaderCullDistance(int value)
Sets the specified value to theshaderCullDistance
field.int
shaderFloat64()
Returns the value of theshaderFloat64
field.VkPhysicalDeviceFeatures
shaderFloat64(int value)
Sets the specified value to theshaderFloat64
field.int
shaderImageGatherExtended()
Returns the value of theshaderImageGatherExtended
field.VkPhysicalDeviceFeatures
shaderImageGatherExtended(int value)
Sets the specified value to theshaderImageGatherExtended
field.int
shaderInt16()
Returns the value of theshaderInt16
field.VkPhysicalDeviceFeatures
shaderInt16(int value)
Sets the specified value to theshaderInt16
field.int
shaderInt64()
Returns the value of theshaderInt64
field.VkPhysicalDeviceFeatures
shaderInt64(int value)
Sets the specified value to theshaderInt64
field.int
shaderResourceMinLod()
Returns the value of theshaderResourceMinLod
field.VkPhysicalDeviceFeatures
shaderResourceMinLod(int value)
Sets the specified value to theshaderResourceMinLod
field.int
shaderResourceResidency()
Returns the value of theshaderResourceResidency
field.VkPhysicalDeviceFeatures
shaderResourceResidency(int value)
Sets the specified value to theshaderResourceResidency
field.int
shaderSampledImageArrayDynamicIndexing()
Returns the value of theshaderSampledImageArrayDynamicIndexing
field.VkPhysicalDeviceFeatures
shaderSampledImageArrayDynamicIndexing(int value)
Sets the specified value to theshaderSampledImageArrayDynamicIndexing
field.int
shaderStorageBufferArrayDynamicIndexing()
Returns the value of theshaderStorageBufferArrayDynamicIndexing
field.VkPhysicalDeviceFeatures
shaderStorageBufferArrayDynamicIndexing(int value)
Sets the specified value to theshaderStorageBufferArrayDynamicIndexing
field.int
shaderStorageImageArrayDynamicIndexing()
Returns the value of theshaderStorageImageArrayDynamicIndexing
field.VkPhysicalDeviceFeatures
shaderStorageImageArrayDynamicIndexing(int value)
Sets the specified value to theshaderStorageImageArrayDynamicIndexing
field.int
shaderStorageImageExtendedFormats()
Returns the value of theshaderStorageImageExtendedFormats
field.VkPhysicalDeviceFeatures
shaderStorageImageExtendedFormats(int value)
Sets the specified value to theshaderStorageImageExtendedFormats
field.int
shaderStorageImageMultisample()
Returns the value of theshaderStorageImageMultisample
field.VkPhysicalDeviceFeatures
shaderStorageImageMultisample(int value)
Sets the specified value to theshaderStorageImageMultisample
field.int
shaderStorageImageReadWithoutFormat()
Returns the value of theshaderStorageImageReadWithoutFormat
field.VkPhysicalDeviceFeatures
shaderStorageImageReadWithoutFormat(int value)
Sets the specified value to theshaderStorageImageReadWithoutFormat
field.int
shaderStorageImageWriteWithoutFormat()
Returns the value of theshaderStorageImageWriteWithoutFormat
field.VkPhysicalDeviceFeatures
shaderStorageImageWriteWithoutFormat(int value)
Sets the specified value to theshaderStorageImageWriteWithoutFormat
field.int
shaderTessellationAndGeometryPointSize()
Returns the value of theshaderTessellationAndGeometryPointSize
field.VkPhysicalDeviceFeatures
shaderTessellationAndGeometryPointSize(int value)
Sets the specified value to theshaderTessellationAndGeometryPointSize
field.int
shaderUniformBufferArrayDynamicIndexing()
Returns the value of theshaderUniformBufferArrayDynamicIndexing
field.VkPhysicalDeviceFeatures
shaderUniformBufferArrayDynamicIndexing(int value)
Sets the specified value to theshaderUniformBufferArrayDynamicIndexing
field.int
sizeof()
Returns thesizeof(struct)
.int
sparseBinding()
Returns the value of thesparseBinding
field.VkPhysicalDeviceFeatures
sparseBinding(int value)
Sets the specified value to thesparseBinding
field.int
sparseResidency16Samples()
Returns the value of thesparseResidency16Samples
field.VkPhysicalDeviceFeatures
sparseResidency16Samples(int value)
Sets the specified value to thesparseResidency16Samples
field.int
sparseResidency2Samples()
Returns the value of thesparseResidency2Samples
field.VkPhysicalDeviceFeatures
sparseResidency2Samples(int value)
Sets the specified value to thesparseResidency2Samples
field.int
sparseResidency4Samples()
Returns the value of thesparseResidency4Samples
field.VkPhysicalDeviceFeatures
sparseResidency4Samples(int value)
Sets the specified value to thesparseResidency4Samples
field.int
sparseResidency8Samples()
Returns the value of thesparseResidency8Samples
field.VkPhysicalDeviceFeatures
sparseResidency8Samples(int value)
Sets the specified value to thesparseResidency8Samples
field.int
sparseResidencyAliased()
Returns the value of thesparseResidencyAliased
field.VkPhysicalDeviceFeatures
sparseResidencyAliased(int value)
Sets the specified value to thesparseResidencyAliased
field.int
sparseResidencyBuffer()
Returns the value of thesparseResidencyBuffer
field.VkPhysicalDeviceFeatures
sparseResidencyBuffer(int value)
Sets the specified value to thesparseResidencyBuffer
field.int
sparseResidencyImage2D()
Returns the value of thesparseResidencyImage2D
field.VkPhysicalDeviceFeatures
sparseResidencyImage2D(int value)
Sets the specified value to thesparseResidencyImage2D
field.int
sparseResidencyImage3D()
Returns the value of thesparseResidencyImage3D
field.VkPhysicalDeviceFeatures
sparseResidencyImage3D(int value)
Sets the specified value to thesparseResidencyImage3D
field.int
tessellationShader()
Returns the value of thetessellationShader
field.VkPhysicalDeviceFeatures
tessellationShader(int value)
Sets the specified value to thetessellationShader
field.int
textureCompressionASTC_LDR()
Returns the value of thetextureCompressionASTC_LDR
field.VkPhysicalDeviceFeatures
textureCompressionASTC_LDR(int value)
Sets the specified value to thetextureCompressionASTC_LDR
field.int
textureCompressionBC()
Returns the value of thetextureCompressionBC
field.VkPhysicalDeviceFeatures
textureCompressionBC(int value)
Sets the specified value to thetextureCompressionBC
field.int
textureCompressionETC2()
Returns the value of thetextureCompressionETC2
field.VkPhysicalDeviceFeatures
textureCompressionETC2(int value)
Sets the specified value to thetextureCompressionETC2
field.int
variableMultisampleRate()
Returns the value of thevariableMultisampleRate
field.VkPhysicalDeviceFeatures
variableMultisampleRate(int value)
Sets the specified value to thevariableMultisampleRate
field.int
vertexPipelineStoresAndAtomics()
Returns the value of thevertexPipelineStoresAndAtomics
field.VkPhysicalDeviceFeatures
vertexPipelineStoresAndAtomics(int value)
Sets the specified value to thevertexPipelineStoresAndAtomics
field.int
wideLines()
Returns the value of thewideLines
field.VkPhysicalDeviceFeatures
wideLines(int value)
Sets the specified value to thewideLines
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceFeatures
public VkPhysicalDeviceFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFeatures
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()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
robustBufferAccess
public int robustBufferAccess()
Returns the value of therobustBufferAccess
field.
-
fullDrawIndexUint32
public int fullDrawIndexUint32()
Returns the value of thefullDrawIndexUint32
field.
-
imageCubeArray
public int imageCubeArray()
Returns the value of theimageCubeArray
field.
-
independentBlend
public int independentBlend()
Returns the value of theindependentBlend
field.
-
geometryShader
public int geometryShader()
Returns the value of thegeometryShader
field.
-
tessellationShader
public int tessellationShader()
Returns the value of thetessellationShader
field.
-
sampleRateShading
public int sampleRateShading()
Returns the value of thesampleRateShading
field.
-
dualSrcBlend
public int dualSrcBlend()
Returns the value of thedualSrcBlend
field.
-
logicOp
public int logicOp()
Returns the value of thelogicOp
field.
-
multiDrawIndirect
public int multiDrawIndirect()
Returns the value of themultiDrawIndirect
field.
-
drawIndirectFirstInstance
public int drawIndirectFirstInstance()
Returns the value of thedrawIndirectFirstInstance
field.
-
depthClamp
public int depthClamp()
Returns the value of thedepthClamp
field.
-
depthBiasClamp
public int depthBiasClamp()
Returns the value of thedepthBiasClamp
field.
-
fillModeNonSolid
public int fillModeNonSolid()
Returns the value of thefillModeNonSolid
field.
-
depthBounds
public int depthBounds()
Returns the value of thedepthBounds
field.
-
wideLines
public int wideLines()
Returns the value of thewideLines
field.
-
largePoints
public int largePoints()
Returns the value of thelargePoints
field.
-
alphaToOne
public int alphaToOne()
Returns the value of thealphaToOne
field.
-
multiViewport
public int multiViewport()
Returns the value of themultiViewport
field.
-
samplerAnisotropy
public int samplerAnisotropy()
Returns the value of thesamplerAnisotropy
field.
-
textureCompressionETC2
public int textureCompressionETC2()
Returns the value of thetextureCompressionETC2
field.
-
textureCompressionASTC_LDR
public int textureCompressionASTC_LDR()
Returns the value of thetextureCompressionASTC_LDR
field.
-
textureCompressionBC
public int textureCompressionBC()
Returns the value of thetextureCompressionBC
field.
-
occlusionQueryPrecise
public int occlusionQueryPrecise()
Returns the value of theocclusionQueryPrecise
field.
-
pipelineStatisticsQuery
public int pipelineStatisticsQuery()
Returns the value of thepipelineStatisticsQuery
field.
-
vertexPipelineStoresAndAtomics
public int vertexPipelineStoresAndAtomics()
Returns the value of thevertexPipelineStoresAndAtomics
field.
-
fragmentStoresAndAtomics
public int fragmentStoresAndAtomics()
Returns the value of thefragmentStoresAndAtomics
field.
-
shaderTessellationAndGeometryPointSize
public int shaderTessellationAndGeometryPointSize()
Returns the value of theshaderTessellationAndGeometryPointSize
field.
-
shaderImageGatherExtended
public int shaderImageGatherExtended()
Returns the value of theshaderImageGatherExtended
field.
-
shaderStorageImageExtendedFormats
public int shaderStorageImageExtendedFormats()
Returns the value of theshaderStorageImageExtendedFormats
field.
-
shaderStorageImageMultisample
public int shaderStorageImageMultisample()
Returns the value of theshaderStorageImageMultisample
field.
-
shaderStorageImageReadWithoutFormat
public int shaderStorageImageReadWithoutFormat()
Returns the value of theshaderStorageImageReadWithoutFormat
field.
-
shaderStorageImageWriteWithoutFormat
public int shaderStorageImageWriteWithoutFormat()
Returns the value of theshaderStorageImageWriteWithoutFormat
field.
-
shaderUniformBufferArrayDynamicIndexing
public int shaderUniformBufferArrayDynamicIndexing()
Returns the value of theshaderUniformBufferArrayDynamicIndexing
field.
-
shaderSampledImageArrayDynamicIndexing
public int shaderSampledImageArrayDynamicIndexing()
Returns the value of theshaderSampledImageArrayDynamicIndexing
field.
-
shaderStorageBufferArrayDynamicIndexing
public int shaderStorageBufferArrayDynamicIndexing()
Returns the value of theshaderStorageBufferArrayDynamicIndexing
field.
-
shaderStorageImageArrayDynamicIndexing
public int shaderStorageImageArrayDynamicIndexing()
Returns the value of theshaderStorageImageArrayDynamicIndexing
field.
-
shaderClipDistance
public int shaderClipDistance()
Returns the value of theshaderClipDistance
field.
-
shaderCullDistance
public int shaderCullDistance()
Returns the value of theshaderCullDistance
field.
-
shaderFloat64
public int shaderFloat64()
Returns the value of theshaderFloat64
field.
-
shaderInt64
public int shaderInt64()
Returns the value of theshaderInt64
field.
-
shaderInt16
public int shaderInt16()
Returns the value of theshaderInt16
field.
-
shaderResourceResidency
public int shaderResourceResidency()
Returns the value of theshaderResourceResidency
field.
-
shaderResourceMinLod
public int shaderResourceMinLod()
Returns the value of theshaderResourceMinLod
field.
-
sparseBinding
public int sparseBinding()
Returns the value of thesparseBinding
field.
-
sparseResidencyBuffer
public int sparseResidencyBuffer()
Returns the value of thesparseResidencyBuffer
field.
-
sparseResidencyImage2D
public int sparseResidencyImage2D()
Returns the value of thesparseResidencyImage2D
field.
-
sparseResidencyImage3D
public int sparseResidencyImage3D()
Returns the value of thesparseResidencyImage3D
field.
-
sparseResidency2Samples
public int sparseResidency2Samples()
Returns the value of thesparseResidency2Samples
field.
-
sparseResidency4Samples
public int sparseResidency4Samples()
Returns the value of thesparseResidency4Samples
field.
-
sparseResidency8Samples
public int sparseResidency8Samples()
Returns the value of thesparseResidency8Samples
field.
-
sparseResidency16Samples
public int sparseResidency16Samples()
Returns the value of thesparseResidency16Samples
field.
-
sparseResidencyAliased
public int sparseResidencyAliased()
Returns the value of thesparseResidencyAliased
field.
-
variableMultisampleRate
public int variableMultisampleRate()
Returns the value of thevariableMultisampleRate
field.
-
inheritedQueries
public int inheritedQueries()
Returns the value of theinheritedQueries
field.
-
robustBufferAccess
public VkPhysicalDeviceFeatures robustBufferAccess(int value)
Sets the specified value to therobustBufferAccess
field.
-
fullDrawIndexUint32
public VkPhysicalDeviceFeatures fullDrawIndexUint32(int value)
Sets the specified value to thefullDrawIndexUint32
field.
-
imageCubeArray
public VkPhysicalDeviceFeatures imageCubeArray(int value)
Sets the specified value to theimageCubeArray
field.
-
independentBlend
public VkPhysicalDeviceFeatures independentBlend(int value)
Sets the specified value to theindependentBlend
field.
-
geometryShader
public VkPhysicalDeviceFeatures geometryShader(int value)
Sets the specified value to thegeometryShader
field.
-
tessellationShader
public VkPhysicalDeviceFeatures tessellationShader(int value)
Sets the specified value to thetessellationShader
field.
-
sampleRateShading
public VkPhysicalDeviceFeatures sampleRateShading(int value)
Sets the specified value to thesampleRateShading
field.
-
dualSrcBlend
public VkPhysicalDeviceFeatures dualSrcBlend(int value)
Sets the specified value to thedualSrcBlend
field.
-
logicOp
public VkPhysicalDeviceFeatures logicOp(int value)
Sets the specified value to thelogicOp
field.
-
multiDrawIndirect
public VkPhysicalDeviceFeatures multiDrawIndirect(int value)
Sets the specified value to themultiDrawIndirect
field.
-
drawIndirectFirstInstance
public VkPhysicalDeviceFeatures drawIndirectFirstInstance(int value)
Sets the specified value to thedrawIndirectFirstInstance
field.
-
depthClamp
public VkPhysicalDeviceFeatures depthClamp(int value)
Sets the specified value to thedepthClamp
field.
-
depthBiasClamp
public VkPhysicalDeviceFeatures depthBiasClamp(int value)
Sets the specified value to thedepthBiasClamp
field.
-
fillModeNonSolid
public VkPhysicalDeviceFeatures fillModeNonSolid(int value)
Sets the specified value to thefillModeNonSolid
field.
-
depthBounds
public VkPhysicalDeviceFeatures depthBounds(int value)
Sets the specified value to thedepthBounds
field.
-
wideLines
public VkPhysicalDeviceFeatures wideLines(int value)
Sets the specified value to thewideLines
field.
-
largePoints
public VkPhysicalDeviceFeatures largePoints(int value)
Sets the specified value to thelargePoints
field.
-
alphaToOne
public VkPhysicalDeviceFeatures alphaToOne(int value)
Sets the specified value to thealphaToOne
field.
-
multiViewport
public VkPhysicalDeviceFeatures multiViewport(int value)
Sets the specified value to themultiViewport
field.
-
samplerAnisotropy
public VkPhysicalDeviceFeatures samplerAnisotropy(int value)
Sets the specified value to thesamplerAnisotropy
field.
-
textureCompressionETC2
public VkPhysicalDeviceFeatures textureCompressionETC2(int value)
Sets the specified value to thetextureCompressionETC2
field.
-
textureCompressionASTC_LDR
public VkPhysicalDeviceFeatures textureCompressionASTC_LDR(int value)
Sets the specified value to thetextureCompressionASTC_LDR
field.
-
textureCompressionBC
public VkPhysicalDeviceFeatures textureCompressionBC(int value)
Sets the specified value to thetextureCompressionBC
field.
-
occlusionQueryPrecise
public VkPhysicalDeviceFeatures occlusionQueryPrecise(int value)
Sets the specified value to theocclusionQueryPrecise
field.
-
pipelineStatisticsQuery
public VkPhysicalDeviceFeatures pipelineStatisticsQuery(int value)
Sets the specified value to thepipelineStatisticsQuery
field.
-
vertexPipelineStoresAndAtomics
public VkPhysicalDeviceFeatures vertexPipelineStoresAndAtomics(int value)
Sets the specified value to thevertexPipelineStoresAndAtomics
field.
-
fragmentStoresAndAtomics
public VkPhysicalDeviceFeatures fragmentStoresAndAtomics(int value)
Sets the specified value to thefragmentStoresAndAtomics
field.
-
shaderTessellationAndGeometryPointSize
public VkPhysicalDeviceFeatures shaderTessellationAndGeometryPointSize(int value)
Sets the specified value to theshaderTessellationAndGeometryPointSize
field.
-
shaderImageGatherExtended
public VkPhysicalDeviceFeatures shaderImageGatherExtended(int value)
Sets the specified value to theshaderImageGatherExtended
field.
-
shaderStorageImageExtendedFormats
public VkPhysicalDeviceFeatures shaderStorageImageExtendedFormats(int value)
Sets the specified value to theshaderStorageImageExtendedFormats
field.
-
shaderStorageImageMultisample
public VkPhysicalDeviceFeatures shaderStorageImageMultisample(int value)
Sets the specified value to theshaderStorageImageMultisample
field.
-
shaderStorageImageReadWithoutFormat
public VkPhysicalDeviceFeatures shaderStorageImageReadWithoutFormat(int value)
Sets the specified value to theshaderStorageImageReadWithoutFormat
field.
-
shaderStorageImageWriteWithoutFormat
public VkPhysicalDeviceFeatures shaderStorageImageWriteWithoutFormat(int value)
Sets the specified value to theshaderStorageImageWriteWithoutFormat
field.
-
shaderUniformBufferArrayDynamicIndexing
public VkPhysicalDeviceFeatures shaderUniformBufferArrayDynamicIndexing(int value)
Sets the specified value to theshaderUniformBufferArrayDynamicIndexing
field.
-
shaderSampledImageArrayDynamicIndexing
public VkPhysicalDeviceFeatures shaderSampledImageArrayDynamicIndexing(int value)
Sets the specified value to theshaderSampledImageArrayDynamicIndexing
field.
-
shaderStorageBufferArrayDynamicIndexing
public VkPhysicalDeviceFeatures shaderStorageBufferArrayDynamicIndexing(int value)
Sets the specified value to theshaderStorageBufferArrayDynamicIndexing
field.
-
shaderStorageImageArrayDynamicIndexing
public VkPhysicalDeviceFeatures shaderStorageImageArrayDynamicIndexing(int value)
Sets the specified value to theshaderStorageImageArrayDynamicIndexing
field.
-
shaderClipDistance
public VkPhysicalDeviceFeatures shaderClipDistance(int value)
Sets the specified value to theshaderClipDistance
field.
-
shaderCullDistance
public VkPhysicalDeviceFeatures shaderCullDistance(int value)
Sets the specified value to theshaderCullDistance
field.
-
shaderFloat64
public VkPhysicalDeviceFeatures shaderFloat64(int value)
Sets the specified value to theshaderFloat64
field.
-
shaderInt64
public VkPhysicalDeviceFeatures shaderInt64(int value)
Sets the specified value to theshaderInt64
field.
-
shaderInt16
public VkPhysicalDeviceFeatures shaderInt16(int value)
Sets the specified value to theshaderInt16
field.
-
shaderResourceResidency
public VkPhysicalDeviceFeatures shaderResourceResidency(int value)
Sets the specified value to theshaderResourceResidency
field.
-
shaderResourceMinLod
public VkPhysicalDeviceFeatures shaderResourceMinLod(int value)
Sets the specified value to theshaderResourceMinLod
field.
-
sparseBinding
public VkPhysicalDeviceFeatures sparseBinding(int value)
Sets the specified value to thesparseBinding
field.
-
sparseResidencyBuffer
public VkPhysicalDeviceFeatures sparseResidencyBuffer(int value)
Sets the specified value to thesparseResidencyBuffer
field.
-
sparseResidencyImage2D
public VkPhysicalDeviceFeatures sparseResidencyImage2D(int value)
Sets the specified value to thesparseResidencyImage2D
field.
-
sparseResidencyImage3D
public VkPhysicalDeviceFeatures sparseResidencyImage3D(int value)
Sets the specified value to thesparseResidencyImage3D
field.
-
sparseResidency2Samples
public VkPhysicalDeviceFeatures sparseResidency2Samples(int value)
Sets the specified value to thesparseResidency2Samples
field.
-
sparseResidency4Samples
public VkPhysicalDeviceFeatures sparseResidency4Samples(int value)
Sets the specified value to thesparseResidency4Samples
field.
-
sparseResidency8Samples
public VkPhysicalDeviceFeatures sparseResidency8Samples(int value)
Sets the specified value to thesparseResidency8Samples
field.
-
sparseResidency16Samples
public VkPhysicalDeviceFeatures sparseResidency16Samples(int value)
Sets the specified value to thesparseResidency16Samples
field.
-
sparseResidencyAliased
public VkPhysicalDeviceFeatures sparseResidencyAliased(int value)
Sets the specified value to thesparseResidencyAliased
field.
-
variableMultisampleRate
public VkPhysicalDeviceFeatures variableMultisampleRate(int value)
Sets the specified value to thevariableMultisampleRate
field.
-
inheritedQueries
public VkPhysicalDeviceFeatures inheritedQueries(int value)
Sets the specified value to theinheritedQueries
field.
-
set
public VkPhysicalDeviceFeatures set(int robustBufferAccess, int fullDrawIndexUint32, int imageCubeArray, int independentBlend, int geometryShader, int tessellationShader, int sampleRateShading, int dualSrcBlend, int logicOp, int multiDrawIndirect, int drawIndirectFirstInstance, int depthClamp, int depthBiasClamp, int fillModeNonSolid, int depthBounds, int wideLines, int largePoints, int alphaToOne, int multiViewport, int samplerAnisotropy, int textureCompressionETC2, int textureCompressionASTC_LDR, int textureCompressionBC, int occlusionQueryPrecise, int pipelineStatisticsQuery, int vertexPipelineStoresAndAtomics, int fragmentStoresAndAtomics, int shaderTessellationAndGeometryPointSize, int shaderImageGatherExtended, int shaderStorageImageExtendedFormats, int shaderStorageImageMultisample, int shaderStorageImageReadWithoutFormat, int shaderStorageImageWriteWithoutFormat, int shaderUniformBufferArrayDynamicIndexing, int shaderSampledImageArrayDynamicIndexing, int shaderStorageBufferArrayDynamicIndexing, int shaderStorageImageArrayDynamicIndexing, int shaderClipDistance, int shaderCullDistance, int shaderFloat64, int shaderInt64, int shaderInt16, int shaderResourceResidency, int shaderResourceMinLod, int sparseBinding, int sparseResidencyBuffer, int sparseResidencyImage2D, int sparseResidencyImage3D, int sparseResidency2Samples, int sparseResidency4Samples, int sparseResidency8Samples, int sparseResidency16Samples, int sparseResidencyAliased, int variableMultisampleRate, int inheritedQueries)
Initializes this struct with the specified values.
-
nset
public VkPhysicalDeviceFeatures nset(long struct)
Unsafe version ofset
.
-
set
public VkPhysicalDeviceFeatures set(VkPhysicalDeviceFeatures src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFeatures malloc()
Returns a newVkPhysicalDeviceFeatures
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFeatures calloc()
Returns a newVkPhysicalDeviceFeatures
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFeatures create()
Returns a newVkPhysicalDeviceFeatures
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceFeatures create(long address)
Returns a newVkPhysicalDeviceFeatures
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkPhysicalDeviceFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFeatures.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceFeatures mallocStack()
Returns a newVkPhysicalDeviceFeatures
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceFeatures callocStack()
Returns a newVkPhysicalDeviceFeatures
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceFeatures mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceFeatures callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceFeatures.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFeatures.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceFeatures.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceFeatures.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceFeatures.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-