Package org.lwjgl.vulkan
Class VkPhysicalDeviceSamplerYcbcrConversionFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSamplerYcbcrConversionFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSamplerYcbcrConversionFeaturesKHR
public class VkPhysicalDeviceSamplerYcbcrConversionFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing Y′CBCR conversion features that can be supported by an implementation.Description
If the
VkPhysicalDeviceSamplerYcbcrConversionFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceSamplerYcbcrConversionFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSamplerYcbcrConversionFeatures { VkStructureTypesType(); void *pNext(); VkBool32samplerYcbcrConversion(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSamplerYcbcrConversionFeatures.BufferAn array ofVkPhysicalDeviceSamplerYcbcrConversionFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SAMPLERYCBCRCONVERSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSamplerYcbcrConversionFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceSamplerYcbcrConversionFeaturescalloc()Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescallocStack()Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescreate()Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescreate(long address)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance for the specified memory address.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceSamplerYcbcrConversionFeaturescreateSafe(long address)static VkPhysicalDeviceSamplerYcbcrConversionFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSamplerYcbcrConversionFeaturesmalloc()Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSamplerYcbcrConversionFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSamplerYcbcrConversionFeaturesmallocStack()Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceSamplerYcbcrConversionFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsamplerYcbcrConversion(long struct)Unsafe version ofsamplerYcbcrConversion().static voidnsamplerYcbcrConversion(long struct, int value)Unsafe version ofsamplerYcbcrConversion.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.VkPhysicalDeviceSamplerYcbcrConversionFeaturespNext(long value)Sets the specified value to thepNext()field.booleansamplerYcbcrConversion()specifies whether the implementation supports sampler Y′CBCR conversion.VkPhysicalDeviceSamplerYcbcrConversionFeaturessamplerYcbcrConversion(boolean value)Sets the specified value to thesamplerYcbcrConversion()field.VkPhysicalDeviceSamplerYcbcrConversionFeaturesset(int sType, long pNext, boolean samplerYcbcrConversion)Initializes this struct with the specified values.VkPhysicalDeviceSamplerYcbcrConversionFeaturesset(VkPhysicalDeviceSamplerYcbcrConversionFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSamplerYcbcrConversionFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSamplerYcbcrConversionFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSamplerYcbcrConversionFeatures
public VkPhysicalDeviceSamplerYcbcrConversionFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance 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.
-
samplerYcbcrConversion
public boolean samplerYcbcrConversion()
specifies whether the implementation supports sampler Y′CBCR conversion. IfsamplerYcbcrConversionisFALSE, sampler Y′CBCR conversion is not supported, and samplers using sampler Y′CBCR conversion must not be used.
-
sType
public VkPhysicalDeviceSamplerYcbcrConversionFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSamplerYcbcrConversionFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSamplerYcbcrConversionFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
samplerYcbcrConversion
public VkPhysicalDeviceSamplerYcbcrConversionFeatures samplerYcbcrConversion(boolean value)
Sets the specified value to thesamplerYcbcrConversion()field.
-
set
public VkPhysicalDeviceSamplerYcbcrConversionFeatures set(int sType, long pNext, boolean samplerYcbcrConversion)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSamplerYcbcrConversionFeatures set(VkPhysicalDeviceSamplerYcbcrConversionFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures malloc()
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures calloc()
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures create()
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures create(long address)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerYcbcrConversionFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerYcbcrConversionFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerYcbcrConversionFeatures.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().
-
nsamplerYcbcrConversion
public static int nsamplerYcbcrConversion(long struct)
Unsafe version ofsamplerYcbcrConversion().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsamplerYcbcrConversion
public static void nsamplerYcbcrConversion(long struct, int value)Unsafe version ofsamplerYcbcrConversion.
-
-