Package org.lwjgl.vulkan
Class VkSamplerCustomBorderColorCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerCustomBorderColorCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSamplerCustomBorderColorCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying custom border color.Valid Usage
- If provided
formatis notFORMAT_UNDEFINEDthen theVkSamplerCreateInfo::borderColortype must match the sampled type of the providedformat, as shown in the SPIR-V Sampled Type column of the Interpretation of Numeric Format table - If the customBorderColorWithoutFormat feature is not enabled then
formatmust not beFORMAT_UNDEFINED - If the sampler is used to sample an image view of
FORMAT_B4G4R4A4_UNORM_PACK16,FORMAT_B5G6R5_UNORM_PACK16, orFORMAT_B5G5R5A1_UNORM_PACK16format thenformatmust not beFORMAT_UNDEFINED
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXTformatmust be a validVkFormatvalue
See Also
Layout
struct VkSamplerCustomBorderColorCreateInfoEXT { VkStructureTypesType(); void const *pNext();VkClearColorValuecustomBorderColor(); VkFormatformat(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSamplerCustomBorderColorCreateInfoEXT.BufferAn array ofVkSamplerCustomBorderColorCreateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkSamplerCustomBorderColorCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkSamplerCustomBorderColorCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerCustomBorderColorCreateInfoEXTcalloc()Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withmemCalloc.static VkSamplerCustomBorderColorCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkSamplerCustomBorderColorCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCustomBorderColorCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCustomBorderColorCreateInfoEXTcreate()Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withBufferUtils.static VkSamplerCustomBorderColorCreateInfoEXT.Buffercreate(int capacity)Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkSamplerCustomBorderColorCreateInfoEXTcreate(long address)Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance for the specified memory address.static VkSamplerCustomBorderColorCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance at the specified memory.static VkSamplerCustomBorderColorCreateInfoEXTcreateSafe(long address)static VkSamplerCustomBorderColorCreateInfoEXT.BuffercreateSafe(long address, int capacity)VkClearColorValuecustomBorderColor()aVkClearColorValuerepresenting the desired custom sampler border color.VkSamplerCustomBorderColorCreateInfoEXTcustomBorderColor(java.util.function.Consumer<VkClearColorValue> consumer)Passes thecustomBorderColor()field to the specifiedConsumer.VkSamplerCustomBorderColorCreateInfoEXTcustomBorderColor(VkClearColorValue value)Copies the specifiedVkClearColorValueto thecustomBorderColor()field.intformat()aVkFormatrepresenting the format of the sampled image view(s).VkSamplerCustomBorderColorCreateInfoEXTformat(int value)Sets the specified value to theformat()field.static VkSamplerCustomBorderColorCreateInfoEXTmalloc()Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withmemAlloc.static VkSamplerCustomBorderColorCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkSamplerCustomBorderColorCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerCustomBorderColorCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkClearColorValuencustomBorderColor(long struct)Unsafe version ofcustomBorderColor().static voidncustomBorderColor(long struct, VkClearColorValue value)Unsafe version ofcustomBorderColor.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.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.VkSamplerCustomBorderColorCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkSamplerCustomBorderColorCreateInfoEXTset(int sType, long pNext, VkClearColorValue customBorderColor, int format)Initializes this struct with the specified values.VkSamplerCustomBorderColorCreateInfoEXTset(VkSamplerCustomBorderColorCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSamplerCustomBorderColorCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkSamplerCustomBorderColorCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkSamplerCustomBorderColorCreateInfoEXT
public VkSamplerCustomBorderColorCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkSamplerCustomBorderColorCreateInfoEXTinstance 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.
-
customBorderColor
public VkClearColorValue customBorderColor()
aVkClearColorValuerepresenting the desired custom sampler border color.
-
format
public int format()
aVkFormatrepresenting the format of the sampled image view(s). This field may beFORMAT_UNDEFINEDif the customBorderColorWithoutFormat feature is enabled.
-
sType
public VkSamplerCustomBorderColorCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSamplerCustomBorderColorCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkSamplerCustomBorderColorCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
customBorderColor
public VkSamplerCustomBorderColorCreateInfoEXT customBorderColor(VkClearColorValue value)
Copies the specifiedVkClearColorValueto thecustomBorderColor()field.
-
customBorderColor
public VkSamplerCustomBorderColorCreateInfoEXT customBorderColor(java.util.function.Consumer<VkClearColorValue> consumer)
Passes thecustomBorderColor()field to the specifiedConsumer.
-
format
public VkSamplerCustomBorderColorCreateInfoEXT format(int value)
Sets the specified value to theformat()field.
-
set
public VkSamplerCustomBorderColorCreateInfoEXT set(int sType, long pNext, VkClearColorValue customBorderColor, int format)
Initializes this struct with the specified values.
-
set
public VkSamplerCustomBorderColorCreateInfoEXT set(VkSamplerCustomBorderColorCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerCustomBorderColorCreateInfoEXT malloc()
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerCustomBorderColorCreateInfoEXT calloc()
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerCustomBorderColorCreateInfoEXT create()
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkSamplerCustomBorderColorCreateInfoEXT create(long address)
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerCustomBorderColorCreateInfoEXT createSafe(long address)
-
malloc
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer create(int capacity)
Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSamplerCustomBorderColorCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSamplerCustomBorderColorCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCustomBorderColorCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCustomBorderColorCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSamplerCustomBorderColorCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCustomBorderColorCreateInfoEXT.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().
-
ncustomBorderColor
public static VkClearColorValue ncustomBorderColor(long struct)
Unsafe version ofcustomBorderColor().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncustomBorderColor
public static void ncustomBorderColor(long struct, VkClearColorValue value)Unsafe version ofcustomBorderColor.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
-