Package org.lwjgl.vulkan
Class VkSamplerYcbcrConversionCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerYcbcrConversionCreateInfo
-
- org.lwjgl.vulkan.VkSamplerYcbcrConversionCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSamplerYcbcrConversionCreateInfoKHR extends VkSamplerYcbcrConversionCreateInfo
SeeVkSamplerYcbcrConversionCreateInfo
.Layout
struct VkSamplerYcbcrConversionCreateInfoKHR { VkStructureType sType; void const * pNext; VkFormat format; VkSamplerYcbcrModelConversion ycbcrModel; VkSamplerYcbcrRange ycbcrRange;
VkComponentMapping
components; VkChromaLocation xChromaOffset; VkChromaLocation yChromaOffset; VkFilter chromaFilter; VkBool32 forceExplicitReconstruction; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSamplerYcbcrConversionCreateInfoKHR.Buffer
An array ofVkSamplerYcbcrConversionCreateInfoKHR
structs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkSamplerYcbcrConversionCreateInfo
ALIGNOF, CHROMAFILTER, COMPONENTS, FORCEEXPLICITRECONSTRUCTION, FORMAT, PNEXT, SIZEOF, STYPE, XCHROMAOFFSET, YCBCRMODEL, YCBCRRANGE, YCHROMAOFFSET
-
-
Constructor Summary
Constructors Constructor Description VkSamplerYcbcrConversionCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkSamplerYcbcrConversionCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerYcbcrConversionCreateInfoKHR
calloc()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withmemCalloc
.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkSamplerYcbcrConversionCreateInfoKHR
callocStack()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.VkSamplerYcbcrConversionCreateInfoKHR
chromaFilter(int value)
Sets the specified value to thechromaFilter
field.VkSamplerYcbcrConversionCreateInfoKHR
components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes thecomponents
field to the specifiedConsumer
.VkSamplerYcbcrConversionCreateInfoKHR
components(VkComponentMapping value)
Copies the specifiedVkComponentMapping
to thecomponents
field.static VkSamplerYcbcrConversionCreateInfoKHR
create()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withBufferUtils
.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkSamplerYcbcrConversionCreateInfoKHR
create(long address)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance for the specified memory address.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance at the specified memory.static VkSamplerYcbcrConversionCreateInfoKHR
createSafe(long address)
static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
createSafe(long address, int capacity)
VkSamplerYcbcrConversionCreateInfoKHR
forceExplicitReconstruction(boolean value)
Sets the specified value to theforceExplicitReconstruction
field.VkSamplerYcbcrConversionCreateInfoKHR
format(int value)
Sets the specified value to theformat
field.static VkSamplerYcbcrConversionCreateInfoKHR
malloc()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withmemAlloc
.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkSamplerYcbcrConversionCreateInfoKHR
mallocStack()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSamplerYcbcrConversionCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSamplerYcbcrConversionCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the specifiedMemoryStack
.VkSamplerYcbcrConversionCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkSamplerYcbcrConversionCreateInfoKHR
set(int sType, long pNext, int format, int ycbcrModel, int ycbcrRange, VkComponentMapping components, int xChromaOffset, int yChromaOffset, int chromaFilter, boolean forceExplicitReconstruction)
Initializes this struct with the specified values.VkSamplerYcbcrConversionCreateInfoKHR
set(VkSamplerYcbcrConversionCreateInfoKHR src)
Copies the specified struct data to this struct.VkSamplerYcbcrConversionCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.VkSamplerYcbcrConversionCreateInfoKHR
xChromaOffset(int value)
Sets the specified value to thexChromaOffset
field.VkSamplerYcbcrConversionCreateInfoKHR
ycbcrModel(int value)
Sets the specified value to theycbcrModel
field.VkSamplerYcbcrConversionCreateInfoKHR
ycbcrRange(int value)
Sets the specified value to theycbcrRange
field.VkSamplerYcbcrConversionCreateInfoKHR
yChromaOffset(int value)
Sets the specified value to theyChromaOffset
field.-
Methods inherited from class org.lwjgl.vulkan.VkSamplerYcbcrConversionCreateInfo
chromaFilter, components, forceExplicitReconstruction, format, nchromaFilter, nchromaFilter, ncomponents, ncomponents, nforceExplicitReconstruction, nforceExplicitReconstruction, nformat, nformat, npNext, npNext, nsType, nsType, nxChromaOffset, nxChromaOffset, nycbcrModel, nycbcrModel, nycbcrRange, nycbcrRange, nyChromaOffset, nyChromaOffset, pNext, set, sizeof, sType, xChromaOffset, ycbcrModel, ycbcrRange, yChromaOffset
-
-
-
-
Constructor Detail
-
VkSamplerYcbcrConversionCreateInfoKHR
public VkSamplerYcbcrConversionCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkSamplerYcbcrConversionCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container. 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
-
sType
public VkSamplerYcbcrConversionCreateInfoKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkSamplerYcbcrConversionCreateInfo
-
pNext
public VkSamplerYcbcrConversionCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkSamplerYcbcrConversionCreateInfo
-
format
public VkSamplerYcbcrConversionCreateInfoKHR format(int value)
Sets the specified value to theformat
field.- Overrides:
format
in classVkSamplerYcbcrConversionCreateInfo
-
ycbcrModel
public VkSamplerYcbcrConversionCreateInfoKHR ycbcrModel(int value)
Sets the specified value to theycbcrModel
field.- Overrides:
ycbcrModel
in classVkSamplerYcbcrConversionCreateInfo
-
ycbcrRange
public VkSamplerYcbcrConversionCreateInfoKHR ycbcrRange(int value)
Sets the specified value to theycbcrRange
field.- Overrides:
ycbcrRange
in classVkSamplerYcbcrConversionCreateInfo
-
components
public VkSamplerYcbcrConversionCreateInfoKHR components(VkComponentMapping value)
Copies the specifiedVkComponentMapping
to thecomponents
field.- Overrides:
components
in classVkSamplerYcbcrConversionCreateInfo
-
components
public VkSamplerYcbcrConversionCreateInfoKHR components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes thecomponents
field to the specifiedConsumer
.- Overrides:
components
in classVkSamplerYcbcrConversionCreateInfo
-
xChromaOffset
public VkSamplerYcbcrConversionCreateInfoKHR xChromaOffset(int value)
Sets the specified value to thexChromaOffset
field.- Overrides:
xChromaOffset
in classVkSamplerYcbcrConversionCreateInfo
-
yChromaOffset
public VkSamplerYcbcrConversionCreateInfoKHR yChromaOffset(int value)
Sets the specified value to theyChromaOffset
field.- Overrides:
yChromaOffset
in classVkSamplerYcbcrConversionCreateInfo
-
chromaFilter
public VkSamplerYcbcrConversionCreateInfoKHR chromaFilter(int value)
Sets the specified value to thechromaFilter
field.- Overrides:
chromaFilter
in classVkSamplerYcbcrConversionCreateInfo
-
forceExplicitReconstruction
public VkSamplerYcbcrConversionCreateInfoKHR forceExplicitReconstruction(boolean value)
Sets the specified value to theforceExplicitReconstruction
field.- Overrides:
forceExplicitReconstruction
in classVkSamplerYcbcrConversionCreateInfo
-
set
public VkSamplerYcbcrConversionCreateInfoKHR set(int sType, long pNext, int format, int ycbcrModel, int ycbcrRange, VkComponentMapping components, int xChromaOffset, int yChromaOffset, int chromaFilter, boolean forceExplicitReconstruction)
Initializes this struct with the specified values.- Overrides:
set
in classVkSamplerYcbcrConversionCreateInfo
-
set
public VkSamplerYcbcrConversionCreateInfoKHR set(VkSamplerYcbcrConversionCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerYcbcrConversionCreateInfoKHR malloc()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSamplerYcbcrConversionCreateInfoKHR calloc()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR create()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR create(long address)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerYcbcrConversionCreateInfoKHR createSafe(long address)
-
malloc
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer create(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSamplerYcbcrConversionCreateInfoKHR mallocStack()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR callocStack()
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSamplerYcbcrConversionCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-