Package org.lwjgl.vulkan
Class VkSamplerBorderColorComponentMappingCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerBorderColorComponentMappingCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSamplerBorderColorComponentMappingCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the component mapping of the border color.Description
The
VkComponentMappingcomponentsmember describes a remapping from components of the border color to components of the vector returned by shader image instructions when the border color is used.Valid Usage
- The
borderColorSwizzlefeature must be enabled.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXTcomponentsmust be a validVkComponentMappingstructure
See Also
Layout
struct VkSamplerBorderColorComponentMappingCreateInfoEXT { VkStructureTypesType(); void const *pNext();VkComponentMappingcomponents(); VkBool32srgb(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSamplerBorderColorComponentMappingCreateInfoEXT.BufferAn array ofVkSamplerBorderColorComponentMappingCreateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkSamplerBorderColorComponentMappingCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkSamplerBorderColorComponentMappingCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerBorderColorComponentMappingCreateInfoEXTcalloc()Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withmemCalloc.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerBorderColorComponentMappingCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkComponentMappingcomponents()aVkComponentMappingstructure specifying a remapping of the border color components.VkSamplerBorderColorComponentMappingCreateInfoEXTcomponents(java.util.function.Consumer<VkComponentMapping> consumer)Passes thecomponents()field to the specifiedConsumer.VkSamplerBorderColorComponentMappingCreateInfoEXTcomponents(VkComponentMapping value)Copies the specifiedVkComponentMappingto thecomponents()field.static VkSamplerBorderColorComponentMappingCreateInfoEXTcreate()Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withBufferUtils.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffercreate(int capacity)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkSamplerBorderColorComponentMappingCreateInfoEXTcreate(long address)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance for the specified memory address.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance at the specified memory.static VkSamplerBorderColorComponentMappingCreateInfoEXTcreateSafe(long address)static VkSamplerBorderColorComponentMappingCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkSamplerBorderColorComponentMappingCreateInfoEXTmalloc()Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withmemAlloc.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerBorderColorComponentMappingCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkComponentMappingncomponents(long struct)Unsafe version ofcomponents().static voidncomponents(long struct, VkComponentMapping value)Unsafe version ofcomponents.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsrgb(long struct)Unsafe version ofsrgb().static voidnsrgb(long struct, int value)Unsafe version ofsrgb.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.VkSamplerBorderColorComponentMappingCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkSamplerBorderColorComponentMappingCreateInfoEXTset(int sType, long pNext, VkComponentMapping components, boolean srgb)Initializes this struct with the specified values.VkSamplerBorderColorComponentMappingCreateInfoEXTset(VkSamplerBorderColorComponentMappingCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()booleansrgb()indicates that the sampler will be combined with an image view that has an image format which is sRGB encoded.VkSamplerBorderColorComponentMappingCreateInfoEXTsrgb(boolean value)Sets the specified value to thesrgb()field.intsType()the type of this structure.VkSamplerBorderColorComponentMappingCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkSamplerBorderColorComponentMappingCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkSamplerBorderColorComponentMappingCreateInfoEXT
public VkSamplerBorderColorComponentMappingCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkSamplerBorderColorComponentMappingCreateInfoEXTinstance 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.
-
components
public VkComponentMapping components()
aVkComponentMappingstructure specifying a remapping of the border color components.
-
srgb
public boolean srgb()
indicates that the sampler will be combined with an image view that has an image format which is sRGB encoded.
-
sType
public VkSamplerBorderColorComponentMappingCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSamplerBorderColorComponentMappingCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkSamplerBorderColorComponentMappingCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
components
public VkSamplerBorderColorComponentMappingCreateInfoEXT components(VkComponentMapping value)
Copies the specifiedVkComponentMappingto thecomponents()field.
-
components
public VkSamplerBorderColorComponentMappingCreateInfoEXT components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes thecomponents()field to the specifiedConsumer.
-
srgb
public VkSamplerBorderColorComponentMappingCreateInfoEXT srgb(boolean value)
Sets the specified value to thesrgb()field.
-
set
public VkSamplerBorderColorComponentMappingCreateInfoEXT set(int sType, long pNext, VkComponentMapping components, boolean srgb)
Initializes this struct with the specified values.
-
set
public VkSamplerBorderColorComponentMappingCreateInfoEXT set(VkSamplerBorderColorComponentMappingCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT malloc()
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT calloc()
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerBorderColorComponentMappingCreateInfoEXT create()
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkSamplerBorderColorComponentMappingCreateInfoEXT create(long address)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerBorderColorComponentMappingCreateInfoEXT createSafe(long address)
-
malloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer create(int capacity)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSamplerBorderColorComponentMappingCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerBorderColorComponentMappingCreateInfoEXT.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().
-
ncomponents
public static VkComponentMapping ncomponents(long struct)
Unsafe version ofcomponents().
-
nsrgb
public static int nsrgb(long struct)
Unsafe version ofsrgb().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncomponents
public static void ncomponents(long struct, VkComponentMapping value)Unsafe version ofcomponents.
-
nsrgb
public static void nsrgb(long struct, int value)Unsafe version ofsrgb.
-
-