Package org.lwjgl.vulkan
Class VkPhysicalDeviceBorderColorSwizzleFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceBorderColorSwizzleFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceBorderColorSwizzleFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether samplers with custom border colors require the component swizzle specified in order to have defined behavior.Description
If the
VkPhysicalDeviceBorderColorSwizzleFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceBorderColorSwizzleFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32borderColorSwizzle(); VkBool32borderColorSwizzleFromImage(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.BufferAn array ofVkPhysicalDeviceBorderColorSwizzleFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBORDERCOLORSWIZZLE
BORDERCOLORSWIZZLEFROMIMAGE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceBorderColorSwizzleFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanborderColorSwizzle()indicates that defined values are returned by sampled image operations when used with a sampler that uses aBORDER_COLOR_FLOAT_OPAQUE_BLACK,BORDER_COLOR_INT_OPAQUE_BLACK,BORDER_COLOR_FLOAT_CUSTOM_EXT, orBORDER_COLOR_INT_CUSTOM_EXTborderColorand an image view that uses a non-identity component mapping, when eitherborderColorSwizzleFromImageis enabled or theVkSamplerBorderColorComponentMappingCreateInfoEXTis specified.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTborderColorSwizzle(boolean value)Sets the specified value to theborderColorSwizzle()field.booleanborderColorSwizzleFromImage()indicates that the implementation will return the correct border color values from sampled image operations under the conditions expressed above, without the application having to specify the border color component mapping when creating the sampler object.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTborderColorSwizzleFromImage(boolean value)Sets the specified value to theborderColorSwizzleFromImage()field.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcalloc()Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcreate()Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTmalloc()Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceBorderColorSwizzleFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated on the specifiedMemoryStack.static intnborderColorSwizzle(long struct)Unsafe version ofborderColorSwizzle().static voidnborderColorSwizzle(long struct, int value)Unsafe version ofborderColorSwizzle.static intnborderColorSwizzleFromImage(long struct)Unsafe version ofborderColorSwizzleFromImage().static voidnborderColorSwizzleFromImage(long struct, int value)Unsafe version ofborderColorSwizzleFromImage.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.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTset(int sType, long pNext, boolean borderColorSwizzle, boolean borderColorSwizzleFromImage)Initializes this struct with the specified values.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTset(VkPhysicalDeviceBorderColorSwizzleFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceBorderColorSwizzleFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceBorderColorSwizzleFeaturesEXT
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance 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.
-
borderColorSwizzle
public boolean borderColorSwizzle()
indicates that defined values are returned by sampled image operations when used with a sampler that uses aBORDER_COLOR_FLOAT_OPAQUE_BLACK,BORDER_COLOR_INT_OPAQUE_BLACK,BORDER_COLOR_FLOAT_CUSTOM_EXT, orBORDER_COLOR_INT_CUSTOM_EXTborderColorand an image view that uses a non-identity component mapping, when eitherborderColorSwizzleFromImageis enabled or theVkSamplerBorderColorComponentMappingCreateInfoEXTis specified.
-
borderColorSwizzleFromImage
public boolean borderColorSwizzleFromImage()
indicates that the implementation will return the correct border color values from sampled image operations under the conditions expressed above, without the application having to specify the border color component mapping when creating the sampler object. If this feature bit is not set, applications can chain aVkSamplerBorderColorComponentMappingCreateInfoEXTstructure when creating samplers for use with image views that do not have an identity swizzle and, when those samplers are combined with image views using the same component mapping, sampled image operations that use opaque black or custom border colors will return the correct border color values.
-
sType
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
borderColorSwizzle
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT borderColorSwizzle(boolean value)
Sets the specified value to theborderColorSwizzle()field.
-
borderColorSwizzleFromImage
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT borderColorSwizzleFromImage(boolean value)
Sets the specified value to theborderColorSwizzleFromImage()field.
-
set
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT set(int sType, long pNext, boolean borderColorSwizzle, boolean borderColorSwizzleFromImage)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceBorderColorSwizzleFeaturesEXT set(VkPhysicalDeviceBorderColorSwizzleFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT malloc()
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT calloc()
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT create()
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBorderColorSwizzleFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBorderColorSwizzleFeaturesEXT.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().
-
nborderColorSwizzle
public static int nborderColorSwizzle(long struct)
Unsafe version ofborderColorSwizzle().
-
nborderColorSwizzleFromImage
public static int nborderColorSwizzleFromImage(long struct)
Unsafe version ofborderColorSwizzleFromImage().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nborderColorSwizzle
public static void nborderColorSwizzle(long struct, int value)Unsafe version ofborderColorSwizzle.
-
nborderColorSwizzleFromImage
public static void nborderColorSwizzleFromImage(long struct, int value)Unsafe version ofborderColorSwizzleFromImage.
-
-