Package org.lwjgl.vulkan
Class VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation supports additional 2-plane 444 Y′CBCR formats.Description
If the
VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Note
Although the formats defined by the
VK_EXT_ycbcr_2plane_444_formatswere promoted to Vulkan 1.3 as optional formats, theVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTstructure was not promoted to Vulkan 1.3.Layout
struct VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32ycbcr2plane444Formats(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.BufferAn array ofVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
YCBCR2PLANE444FORMATSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcalloc()Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcreate()Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTmalloc()Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated on the specifiedMemoryStack.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.static intnycbcr2plane444Formats(long struct)Unsafe version ofycbcr2plane444Formats().static voidnycbcr2plane444Formats(long struct, int value)Unsafe version ofycbcr2plane444Formats.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTset(int sType, long pNext, boolean ycbcr2plane444Formats)Initializes this struct with the specified values.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTset(VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXTvalue to thesType()field.booleanycbcr2plane444Formats()indicates that the implementation supports the following 2-plane 444 Y′CBCR formats:FORMAT_G8_B8R8_2PLANE_444_UNORMFORMAT_G10X6_B10X6R10X6_2PLANE_444_UNORM_3PACK16FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16FORMAT_G16_B16R16_2PLANE_444_UNORMVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTycbcr2plane444Formats(boolean value)Sets the specified value to theycbcr2plane444Formats()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance 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.
-
ycbcr2plane444Formats
public boolean ycbcr2plane444Formats()
indicates that the implementation supports the following 2-plane 444 Y′CBCR formats:
-
sType
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
ycbcr2plane444Formats
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT ycbcr2plane444Formats(boolean value)
Sets the specified value to theycbcr2plane444Formats()field.
-
set
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT set(int sType, long pNext, boolean ycbcr2plane444Formats)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT set(VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT malloc()
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT calloc()
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT create()
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.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().
-
nycbcr2plane444Formats
public static int nycbcr2plane444Formats(long struct)
Unsafe version ofycbcr2plane444Formats().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nycbcr2plane444Formats
public static void nycbcr2plane444Formats(long struct, int value)Unsafe version ofycbcr2plane444Formats.
-
-