Package org.lwjgl.vulkan
Class VkPhysicalDeviceCustomBorderColorFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceCustomBorderColorFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceCustomBorderColorFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether custom border colors can be supported by an implementation.Description
If the
VkPhysicalDeviceCustomBorderColorFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceCustomBorderColorFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceCustomBorderColorFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32customBorderColors(); VkBool32customBorderColorWithoutFormat(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceCustomBorderColorFeaturesEXT.BufferAn array ofVkPhysicalDeviceCustomBorderColorFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCUSTOMBORDERCOLORS
CUSTOMBORDERCOLORWITHOUTFORMAT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceCustomBorderColorFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceCustomBorderColorFeaturesEXTcalloc()Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCustomBorderColorFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCustomBorderColorFeaturesEXTcreate()Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceCustomBorderColorFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceCustomBorderColorFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceCustomBorderColorFeaturesEXT.BuffercreateSafe(long address, int capacity)booleancustomBorderColors()indicates that the implementation supports providing aborderColorvalue with one of the following values at sampler creation time:BORDER_COLOR_FLOAT_CUSTOM_EXTBORDER_COLOR_INT_CUSTOM_EXTVkPhysicalDeviceCustomBorderColorFeaturesEXTcustomBorderColors(boolean value)Sets the specified value to thecustomBorderColors()field.booleancustomBorderColorWithoutFormat()indicates that explicit formats are not required for custom border colors and the value of theformatmember of theVkSamplerCustomBorderColorCreateInfoEXTstructure may beFORMAT_UNDEFINED.VkPhysicalDeviceCustomBorderColorFeaturesEXTcustomBorderColorWithoutFormat(boolean value)Sets the specified value to thecustomBorderColorWithoutFormat()field.static VkPhysicalDeviceCustomBorderColorFeaturesEXTmalloc()Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCustomBorderColorFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated on the specifiedMemoryStack.static intncustomBorderColors(long struct)Unsafe version ofcustomBorderColors().static voidncustomBorderColors(long struct, int value)Unsafe version ofcustomBorderColors.static intncustomBorderColorWithoutFormat(long struct)Unsafe version ofcustomBorderColorWithoutFormat().static voidncustomBorderColorWithoutFormat(long struct, int value)Unsafe version ofcustomBorderColorWithoutFormat.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.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceCustomBorderColorFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceCustomBorderColorFeaturesEXTset(int sType, long pNext, boolean customBorderColors, boolean customBorderColorWithoutFormat)Initializes this struct with the specified values.VkPhysicalDeviceCustomBorderColorFeaturesEXTset(VkPhysicalDeviceCustomBorderColorFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceCustomBorderColorFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceCustomBorderColorFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceCustomBorderColorFeaturesEXT
public VkPhysicalDeviceCustomBorderColorFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance 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.
-
customBorderColors
public boolean customBorderColors()
indicates that the implementation supports providing aborderColorvalue with one of the following values at sampler creation time:
-
customBorderColorWithoutFormat
public boolean customBorderColorWithoutFormat()
indicates that explicit formats are not required for custom border colors and the value of theformatmember of theVkSamplerCustomBorderColorCreateInfoEXTstructure may beFORMAT_UNDEFINED. If this feature bit is not set, applications must provide theVkFormatof the image view(s) being sampled by this sampler in theformatmember of theVkSamplerCustomBorderColorCreateInfoEXTstructure.
-
sType
public VkPhysicalDeviceCustomBorderColorFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceCustomBorderColorFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceCustomBorderColorFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
customBorderColors
public VkPhysicalDeviceCustomBorderColorFeaturesEXT customBorderColors(boolean value)
Sets the specified value to thecustomBorderColors()field.
-
customBorderColorWithoutFormat
public VkPhysicalDeviceCustomBorderColorFeaturesEXT customBorderColorWithoutFormat(boolean value)
Sets the specified value to thecustomBorderColorWithoutFormat()field.
-
set
public VkPhysicalDeviceCustomBorderColorFeaturesEXT set(int sType, long pNext, boolean customBorderColors, boolean customBorderColorWithoutFormat)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceCustomBorderColorFeaturesEXT set(VkPhysicalDeviceCustomBorderColorFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT malloc()
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT calloc()
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT create()
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceCustomBorderColorFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceCustomBorderColorFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCustomBorderColorFeaturesEXT.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().
-
ncustomBorderColors
public static int ncustomBorderColors(long struct)
Unsafe version ofcustomBorderColors().
-
ncustomBorderColorWithoutFormat
public static int ncustomBorderColorWithoutFormat(long struct)
Unsafe version ofcustomBorderColorWithoutFormat().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncustomBorderColors
public static void ncustomBorderColors(long struct, int value)Unsafe version ofcustomBorderColors.
-
ncustomBorderColorWithoutFormat
public static void ncustomBorderColorWithoutFormat(long struct, int value)Unsafe version ofcustomBorderColorWithoutFormat.
-
-