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;VkComponentMappingcomponents; VkChromaLocation xChromaOffset; VkChromaLocation yChromaOffset; VkFilter chromaFilter; VkBool32 forceExplicitReconstruction; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSamplerYcbcrConversionCreateInfoKHR.BufferAn array ofVkSamplerYcbcrConversionCreateInfoKHRstructs.
-
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 aVkSamplerYcbcrConversionCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerYcbcrConversionCreateInfoKHRcalloc()Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withmemCalloc.static VkSamplerYcbcrConversionCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkSamplerYcbcrConversionCreateInfoKHRcallocStack()Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerYcbcrConversionCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkSamplerYcbcrConversionCreateInfoKHRchromaFilter(int value)Sets the specified value to thechromaFilterfield.VkSamplerYcbcrConversionCreateInfoKHRcomponents(java.util.function.Consumer<VkComponentMapping> consumer)Passes thecomponentsfield to the specifiedConsumer.VkSamplerYcbcrConversionCreateInfoKHRcomponents(VkComponentMapping value)Copies the specifiedVkComponentMappingto thecomponentsfield.static VkSamplerYcbcrConversionCreateInfoKHRcreate()Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withBufferUtils.static VkSamplerYcbcrConversionCreateInfoKHR.Buffercreate(int capacity)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkSamplerYcbcrConversionCreateInfoKHRcreate(long address)Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance for the specified memory address.static VkSamplerYcbcrConversionCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance at the specified memory.static VkSamplerYcbcrConversionCreateInfoKHRcreateSafe(long address)static VkSamplerYcbcrConversionCreateInfoKHR.BuffercreateSafe(long address, int capacity)VkSamplerYcbcrConversionCreateInfoKHRforceExplicitReconstruction(boolean value)Sets the specified value to theforceExplicitReconstructionfield.VkSamplerYcbcrConversionCreateInfoKHRformat(int value)Sets the specified value to theformatfield.static VkSamplerYcbcrConversionCreateInfoKHRmalloc()Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withmemAlloc.static VkSamplerYcbcrConversionCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkSamplerYcbcrConversionCreateInfoKHRmallocStack()Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkSamplerYcbcrConversionCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkSamplerYcbcrConversionCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerYcbcrConversionCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the specifiedMemoryStack.VkSamplerYcbcrConversionCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkSamplerYcbcrConversionCreateInfoKHRset(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.VkSamplerYcbcrConversionCreateInfoKHRset(VkSamplerYcbcrConversionCreateInfoKHR src)Copies the specified struct data to this struct.VkSamplerYcbcrConversionCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.VkSamplerYcbcrConversionCreateInfoKHRxChromaOffset(int value)Sets the specified value to thexChromaOffsetfield.VkSamplerYcbcrConversionCreateInfoKHRycbcrModel(int value)Sets the specified value to theycbcrModelfield.VkSamplerYcbcrConversionCreateInfoKHRycbcrRange(int value)Sets the specified value to theycbcrRangefield.VkSamplerYcbcrConversionCreateInfoKHRyChromaOffset(int value)Sets the specified value to theyChromaOffsetfield.-
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 aVkSamplerYcbcrConversionCreateInfoKHRinstance 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
-
sType
public VkSamplerYcbcrConversionCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkSamplerYcbcrConversionCreateInfo
-
pNext
public VkSamplerYcbcrConversionCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkSamplerYcbcrConversionCreateInfo
-
format
public VkSamplerYcbcrConversionCreateInfoKHR format(int value)
Sets the specified value to theformatfield.- Overrides:
formatin classVkSamplerYcbcrConversionCreateInfo
-
ycbcrModel
public VkSamplerYcbcrConversionCreateInfoKHR ycbcrModel(int value)
Sets the specified value to theycbcrModelfield.- Overrides:
ycbcrModelin classVkSamplerYcbcrConversionCreateInfo
-
ycbcrRange
public VkSamplerYcbcrConversionCreateInfoKHR ycbcrRange(int value)
Sets the specified value to theycbcrRangefield.- Overrides:
ycbcrRangein classVkSamplerYcbcrConversionCreateInfo
-
components
public VkSamplerYcbcrConversionCreateInfoKHR components(VkComponentMapping value)
Copies the specifiedVkComponentMappingto thecomponentsfield.- Overrides:
componentsin classVkSamplerYcbcrConversionCreateInfo
-
components
public VkSamplerYcbcrConversionCreateInfoKHR components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes thecomponentsfield to the specifiedConsumer.- Overrides:
componentsin classVkSamplerYcbcrConversionCreateInfo
-
xChromaOffset
public VkSamplerYcbcrConversionCreateInfoKHR xChromaOffset(int value)
Sets the specified value to thexChromaOffsetfield.- Overrides:
xChromaOffsetin classVkSamplerYcbcrConversionCreateInfo
-
yChromaOffset
public VkSamplerYcbcrConversionCreateInfoKHR yChromaOffset(int value)
Sets the specified value to theyChromaOffsetfield.- Overrides:
yChromaOffsetin classVkSamplerYcbcrConversionCreateInfo
-
chromaFilter
public VkSamplerYcbcrConversionCreateInfoKHR chromaFilter(int value)
Sets the specified value to thechromaFilterfield.- Overrides:
chromaFilterin classVkSamplerYcbcrConversionCreateInfo
-
forceExplicitReconstruction
public VkSamplerYcbcrConversionCreateInfoKHR forceExplicitReconstruction(boolean value)
Sets the specified value to theforceExplicitReconstructionfield.- Overrides:
forceExplicitReconstructionin 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:
setin 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 newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerYcbcrConversionCreateInfoKHR calloc()
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR create()
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR create(long address)
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerYcbcrConversionCreateInfoKHR createSafe(long address)
-
malloc
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer create(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance 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 newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR callocStack()
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSamplerYcbcrConversionCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerYcbcrConversionCreateInfoKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSamplerYcbcrConversionCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkSamplerYcbcrConversionCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-