Package org.lwjgl.vulkan
Class VkSamplerCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkSamplerCreateInfo {
VkStructureType sType;
void const * pNext;
VkSamplerCreateFlags flags;
VkFilter magFilter;
VkFilter minFilter;
VkSamplerMipmapMode mipmapMode;
VkSamplerAddressMode addressModeU;
VkSamplerAddressMode addressModeV;
VkSamplerAddressMode addressModeW;
float mipLodBias;
VkBool32 anisotropyEnable;
float maxAnisotropy;
VkBool32 compareEnable;
VkCompareOp compareOp;
float minLod;
float maxLod;
VkBorderColor borderColor;
VkBool32 unnormalizedCoordinates;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSamplerCreateInfo(ByteBuffer container) Creates aVkSamplerCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintaddressModeU(int value) Sets the specified value to theaddressModeUfield.intaddressModeV(int value) Sets the specified value to theaddressModeVfield.intaddressModeW(int value) Sets the specified value to theaddressModeWfield.booleananisotropyEnable(boolean value) Sets the specified value to theanisotropyEnablefield.intborderColor(int value) Sets the specified value to theborderColorfield.static VkSamplerCreateInfocalloc()Returns a newVkSamplerCreateInfoinstance allocated withmemCalloc.static VkSamplerCreateInfo.Buffercalloc(int capacity) Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemCalloc.static VkSamplerCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfocalloc(MemoryStack stack) Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfoDeprecated.static VkSamplerCreateInfo.BuffercallocStack(int capacity) Deprecated.static VkSamplerCreateInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkSamplerCreateInfocallocStack(MemoryStack stack) Deprecated.booleancompareEnable(boolean value) Sets the specified value to thecompareEnablefield.intcompareOp(int value) Sets the specified value to thecompareOpfield.static VkSamplerCreateInfocreate()Returns a newVkSamplerCreateInfoinstance allocated withBufferUtils.static VkSamplerCreateInfo.Buffercreate(int capacity) Returns a newVkSamplerCreateInfo.Bufferinstance allocated withBufferUtils.static VkSamplerCreateInfocreate(long address) Returns a newVkSamplerCreateInfoinstance for the specified memory address.static VkSamplerCreateInfo.Buffercreate(long address, int capacity) Create aVkSamplerCreateInfo.Bufferinstance at the specified memory.static @Nullable VkSamplerCreateInfocreateSafe(long address) static @Nullable VkSamplerCreateInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intmagFilter(int value) Sets the specified value to themagFilterfield.static VkSamplerCreateInfomalloc()Returns a newVkSamplerCreateInfoinstance allocated withmemAlloc.static VkSamplerCreateInfo.Buffermalloc(int capacity) Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemAlloc.static VkSamplerCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerCreateInfomalloc(MemoryStack stack) Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.static VkSamplerCreateInfoDeprecated.static VkSamplerCreateInfo.BuffermallocStack(int capacity) Deprecated.static VkSamplerCreateInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkSamplerCreateInfomallocStack(MemoryStack stack) Deprecated.floatmaxAnisotropy(float value) Sets the specified value to themaxAnisotropyfield.floatmaxLod()maxLod(float value) Sets the specified value to themaxLodfield.intminFilter(int value) Sets the specified value to theminFilterfield.floatminLod()minLod(float value) Sets the specified value to theminLodfield.floatmipLodBias(float value) Sets the specified value to themipLodBiasfield.intmipmapMode(int value) Sets the specified value to themipmapModefield.static intnaddressModeU(long struct) Unsafe version ofaddressModeU().static voidnaddressModeU(long struct, int value) Unsafe version ofaddressModeU.static intnaddressModeV(long struct) Unsafe version ofaddressModeV().static voidnaddressModeV(long struct, int value) Unsafe version ofaddressModeV.static intnaddressModeW(long struct) Unsafe version ofaddressModeW().static voidnaddressModeW(long struct, int value) Unsafe version ofaddressModeW.static intnanisotropyEnable(long struct) Unsafe version ofanisotropyEnable().static voidnanisotropyEnable(long struct, int value) Unsafe version ofanisotropyEnable.static intnborderColor(long struct) Unsafe version ofborderColor().static voidnborderColor(long struct, int value) Unsafe version ofborderColor.static intncompareEnable(long struct) Unsafe version ofcompareEnable().static voidncompareEnable(long struct, int value) Unsafe version ofcompareEnable.static intncompareOp(long struct) Unsafe version ofcompareOp().static voidncompareOp(long struct, int value) Unsafe version ofcompareOp.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmagFilter(long struct) Unsafe version ofmagFilter().static voidnmagFilter(long struct, int value) Unsafe version ofmagFilter.static floatnmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy().static voidnmaxAnisotropy(long struct, float value) Unsafe version ofmaxAnisotropy.static floatnmaxLod(long struct) Unsafe version ofmaxLod().static voidnmaxLod(long struct, float value) Unsafe version ofmaxLod.static intnminFilter(long struct) Unsafe version ofminFilter().static voidnminFilter(long struct, int value) Unsafe version ofminFilter.static floatnminLod(long struct) Unsafe version ofminLod().static voidnminLod(long struct, float value) Unsafe version ofminLod.static floatnmipLodBias(long struct) Unsafe version ofmipLodBias().static voidnmipLodBias(long struct, float value) Unsafe version ofmipLodBias.static intnmipmapMode(long struct) Unsafe version ofmipmapMode().static voidnmipmapMode(long struct, int value) Unsafe version ofmipmapMode.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.static intnunnormalizedCoordinates(long struct) Unsafe version ofunnormalizedCoordinates().static voidnunnormalizedCoordinates(long struct, int value) Unsafe version ofunnormalizedCoordinates.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSamplerBlockMatchWindowCreateInfoQCOMvalue to thepNextchain.Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSamplerCubicWeightsCreateInfoQCOMvalue to thepNextchain.Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSamplerReductionModeCreateInfovalue to thepNextchain.Prepends the specifiedVkSamplerReductionModeCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain.Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain.set(int sType, long pNext, int flags, int magFilter, int minFilter, int mipmapMode, int addressModeU, int addressModeV, int addressModeW, float mipLodBias, boolean anisotropyEnable, float maxAnisotropy, boolean compareEnable, int compareOp, float minLod, float maxLod, int borderColor, boolean unnormalizedCoordinates) Initializes this struct with the specified values.set(VkSamplerCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFOvalue to thesTypefield.booleanunnormalizedCoordinates(boolean value) Sets the specified value to theunnormalizedCoordinatesfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MAGFILTER
public static final int MAGFILTERThe struct member offsets. -
MINFILTER
public static final int MINFILTERThe struct member offsets. -
MIPMAPMODE
public static final int MIPMAPMODEThe struct member offsets. -
ADDRESSMODEU
public static final int ADDRESSMODEUThe struct member offsets. -
ADDRESSMODEV
public static final int ADDRESSMODEVThe struct member offsets. -
ADDRESSMODEW
public static final int ADDRESSMODEWThe struct member offsets. -
MIPLODBIAS
public static final int MIPLODBIASThe struct member offsets. -
ANISOTROPYENABLE
public static final int ANISOTROPYENABLEThe struct member offsets. -
MAXANISOTROPY
public static final int MAXANISOTROPYThe struct member offsets. -
COMPAREENABLE
public static final int COMPAREENABLEThe struct member offsets. -
COMPAREOP
public static final int COMPAREOPThe struct member offsets. -
MINLOD
public static final int MINLODThe struct member offsets. -
MAXLOD
public static final int MAXLODThe struct member offsets. -
BORDERCOLOR
public static final int BORDERCOLORThe struct member offsets. -
UNNORMALIZEDCOORDINATES
public static final int UNNORMALIZEDCOORDINATESThe struct member offsets.
-
-
Constructor Details
-
VkSamplerCreateInfo
Creates aVkSamplerCreateInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkSamplerCreateInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
magFilter
public int magFilter()- Returns:
- the value of the
magFilterfield.
-
minFilter
public int minFilter()- Returns:
- the value of the
minFilterfield.
-
mipmapMode
public int mipmapMode()- Returns:
- the value of the
mipmapModefield.
-
addressModeU
public int addressModeU()- Returns:
- the value of the
addressModeUfield.
-
addressModeV
public int addressModeV()- Returns:
- the value of the
addressModeVfield.
-
addressModeW
public int addressModeW()- Returns:
- the value of the
addressModeWfield.
-
mipLodBias
public float mipLodBias()- Returns:
- the value of the
mipLodBiasfield.
-
anisotropyEnable
public boolean anisotropyEnable()- Returns:
- the value of the
anisotropyEnablefield.
-
maxAnisotropy
public float maxAnisotropy()- Returns:
- the value of the
maxAnisotropyfield.
-
compareEnable
public boolean compareEnable()- Returns:
- the value of the
compareEnablefield.
-
compareOp
public int compareOp()- Returns:
- the value of the
compareOpfield.
-
minLod
public float minLod()- Returns:
- the value of the
minLodfield.
-
maxLod
public float maxLod()- Returns:
- the value of the
maxLodfield.
-
borderColor
public int borderColor()- Returns:
- the value of the
borderColorfield.
-
unnormalizedCoordinates
public boolean unnormalizedCoordinates()- Returns:
- the value of the
unnormalizedCoordinatesfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerBlockMatchWindowCreateInfoQCOMvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerCubicWeightsCreateInfoQCOMvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerReductionModeCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerReductionModeCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
magFilter
Sets the specified value to themagFilterfield. -
minFilter
Sets the specified value to theminFilterfield. -
mipmapMode
Sets the specified value to themipmapModefield. -
addressModeU
Sets the specified value to theaddressModeUfield. -
addressModeV
Sets the specified value to theaddressModeVfield. -
addressModeW
Sets the specified value to theaddressModeWfield. -
mipLodBias
Sets the specified value to themipLodBiasfield. -
anisotropyEnable
Sets the specified value to theanisotropyEnablefield. -
maxAnisotropy
Sets the specified value to themaxAnisotropyfield. -
compareEnable
Sets the specified value to thecompareEnablefield. -
compareOp
Sets the specified value to thecompareOpfield. -
minLod
Sets the specified value to theminLodfield. -
maxLod
Sets the specified value to themaxLodfield. -
borderColor
Sets the specified value to theborderColorfield. -
unnormalizedCoordinates
Sets the specified value to theunnormalizedCoordinatesfield. -
set
public VkSamplerCreateInfo set(int sType, long pNext, int flags, int magFilter, int minFilter, int mipmapMode, int addressModeU, int addressModeV, int addressModeW, float mipLodBias, boolean anisotropyEnable, float maxAnisotropy, boolean compareEnable, int compareOp, float minLod, float maxLod, int borderColor, boolean unnormalizedCoordinates) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSamplerCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSamplerCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSamplerCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVkSamplerCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSamplerCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nmagFilter
public static int nmagFilter(long struct) Unsafe version ofmagFilter(). -
nminFilter
public static int nminFilter(long struct) Unsafe version ofminFilter(). -
nmipmapMode
public static int nmipmapMode(long struct) Unsafe version ofmipmapMode(). -
naddressModeU
public static int naddressModeU(long struct) Unsafe version ofaddressModeU(). -
naddressModeV
public static int naddressModeV(long struct) Unsafe version ofaddressModeV(). -
naddressModeW
public static int naddressModeW(long struct) Unsafe version ofaddressModeW(). -
nmipLodBias
public static float nmipLodBias(long struct) Unsafe version ofmipLodBias(). -
nanisotropyEnable
public static int nanisotropyEnable(long struct) Unsafe version ofanisotropyEnable(). -
nmaxAnisotropy
public static float nmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy(). -
ncompareEnable
public static int ncompareEnable(long struct) Unsafe version ofcompareEnable(). -
ncompareOp
public static int ncompareOp(long struct) Unsafe version ofcompareOp(). -
nminLod
public static float nminLod(long struct) Unsafe version ofminLod(). -
nmaxLod
public static float nmaxLod(long struct) Unsafe version ofmaxLod(). -
nborderColor
public static int nborderColor(long struct) Unsafe version ofborderColor(). -
nunnormalizedCoordinates
public static int nunnormalizedCoordinates(long struct) Unsafe version ofunnormalizedCoordinates(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nmagFilter
public static void nmagFilter(long struct, int value) Unsafe version ofmagFilter. -
nminFilter
public static void nminFilter(long struct, int value) Unsafe version ofminFilter. -
nmipmapMode
public static void nmipmapMode(long struct, int value) Unsafe version ofmipmapMode. -
naddressModeU
public static void naddressModeU(long struct, int value) Unsafe version ofaddressModeU. -
naddressModeV
public static void naddressModeV(long struct, int value) Unsafe version ofaddressModeV. -
naddressModeW
public static void naddressModeW(long struct, int value) Unsafe version ofaddressModeW. -
nmipLodBias
public static void nmipLodBias(long struct, float value) Unsafe version ofmipLodBias. -
nanisotropyEnable
public static void nanisotropyEnable(long struct, int value) Unsafe version ofanisotropyEnable. -
nmaxAnisotropy
public static void nmaxAnisotropy(long struct, float value) Unsafe version ofmaxAnisotropy. -
ncompareEnable
public static void ncompareEnable(long struct, int value) Unsafe version ofcompareEnable. -
ncompareOp
public static void ncompareOp(long struct, int value) Unsafe version ofcompareOp. -
nminLod
public static void nminLod(long struct, float value) Unsafe version ofminLod. -
nmaxLod
public static void nmaxLod(long struct, float value) Unsafe version ofmaxLod. -
nborderColor
public static void nborderColor(long struct, int value) Unsafe version ofborderColor. -
nunnormalizedCoordinates
public static void nunnormalizedCoordinates(long struct, int value) Unsafe version ofunnormalizedCoordinates.
-