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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aVkSamplerCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
addressModeU
(int value) Sets the specified value to theaddressModeU
field.int
addressModeV
(int value) Sets the specified value to theaddressModeV
field.int
addressModeW
(int value) Sets the specified value to theaddressModeW
field.boolean
anisotropyEnable
(boolean value) Sets the specified value to theanisotropyEnable
field.int
borderColor
(int value) Sets the specified value to theborderColor
field.static VkSamplerCreateInfo
calloc()
Returns a newVkSamplerCreateInfo
instance allocated withmemCalloc
.static VkSamplerCreateInfo.Buffer
calloc
(int capacity) Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemCalloc
.static VkSamplerCreateInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSamplerCreateInfo
calloc
(MemoryStack stack) Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSamplerCreateInfo
Deprecated.static VkSamplerCreateInfo.Buffer
callocStack
(int capacity) Deprecated.static VkSamplerCreateInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSamplerCreateInfo
callocStack
(MemoryStack stack) Deprecated.boolean
compareEnable
(boolean value) Sets the specified value to thecompareEnable
field.int
compareOp
(int value) Sets the specified value to thecompareOp
field.static VkSamplerCreateInfo
create()
Returns a newVkSamplerCreateInfo
instance allocated withBufferUtils
.static VkSamplerCreateInfo.Buffer
create
(int capacity) Returns a newVkSamplerCreateInfo.Buffer
instance allocated withBufferUtils
.static VkSamplerCreateInfo
create
(long address) Returns a newVkSamplerCreateInfo
instance for the specified memory address.static VkSamplerCreateInfo.Buffer
create
(long address, int capacity) Create aVkSamplerCreateInfo.Buffer
instance at the specified memory.static @Nullable VkSamplerCreateInfo
createSafe
(long address) static @Nullable VkSamplerCreateInfo.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
magFilter
(int value) Sets the specified value to themagFilter
field.static VkSamplerCreateInfo
malloc()
Returns a newVkSamplerCreateInfo
instance allocated withmemAlloc
.static VkSamplerCreateInfo.Buffer
malloc
(int capacity) Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemAlloc
.static VkSamplerCreateInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkSamplerCreateInfo
malloc
(MemoryStack stack) Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.static VkSamplerCreateInfo
Deprecated.static VkSamplerCreateInfo.Buffer
mallocStack
(int capacity) Deprecated.static VkSamplerCreateInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSamplerCreateInfo
mallocStack
(MemoryStack stack) Deprecated.float
maxAnisotropy
(float value) Sets the specified value to themaxAnisotropy
field.float
maxLod()
maxLod
(float value) Sets the specified value to themaxLod
field.int
minFilter
(int value) Sets the specified value to theminFilter
field.float
minLod()
minLod
(float value) Sets the specified value to theminLod
field.float
mipLodBias
(float value) Sets the specified value to themipLodBias
field.int
mipmapMode
(int value) Sets the specified value to themipmapMode
field.static int
naddressModeU
(long struct) Unsafe version ofaddressModeU()
.static void
naddressModeU
(long struct, int value) Unsafe version ofaddressModeU
.static int
naddressModeV
(long struct) Unsafe version ofaddressModeV()
.static void
naddressModeV
(long struct, int value) Unsafe version ofaddressModeV
.static int
naddressModeW
(long struct) Unsafe version ofaddressModeW()
.static void
naddressModeW
(long struct, int value) Unsafe version ofaddressModeW
.static int
nanisotropyEnable
(long struct) Unsafe version ofanisotropyEnable()
.static void
nanisotropyEnable
(long struct, int value) Unsafe version ofanisotropyEnable
.static int
nborderColor
(long struct) Unsafe version ofborderColor()
.static void
nborderColor
(long struct, int value) Unsafe version ofborderColor
.static int
ncompareEnable
(long struct) Unsafe version ofcompareEnable()
.static void
ncompareEnable
(long struct, int value) Unsafe version ofcompareEnable
.static int
ncompareOp
(long struct) Unsafe version ofcompareOp()
.static void
ncompareOp
(long struct, int value) Unsafe version ofcompareOp
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nmagFilter
(long struct) Unsafe version ofmagFilter()
.static void
nmagFilter
(long struct, int value) Unsafe version ofmagFilter
.static float
nmaxAnisotropy
(long struct) Unsafe version ofmaxAnisotropy()
.static void
nmaxAnisotropy
(long struct, float value) Unsafe version ofmaxAnisotropy
.static float
nmaxLod
(long struct) Unsafe version ofmaxLod()
.static void
nmaxLod
(long struct, float value) Unsafe version ofmaxLod
.static int
nminFilter
(long struct) Unsafe version ofminFilter()
.static void
nminFilter
(long struct, int value) Unsafe version ofminFilter
.static float
nminLod
(long struct) Unsafe version ofminLod()
.static void
nminLod
(long struct, float value) Unsafe version ofminLod
.static float
nmipLodBias
(long struct) Unsafe version ofmipLodBias()
.static void
nmipLodBias
(long struct, float value) Unsafe version ofmipLodBias
.static int
nmipmapMode
(long struct) Unsafe version ofmipmapMode()
.static void
nmipmapMode
(long struct, int value) Unsafe version ofmipmapMode
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
nunnormalizedCoordinates
(long struct) Unsafe version ofunnormalizedCoordinates()
.static void
nunnormalizedCoordinates
(long struct, int value) Unsafe version ofunnormalizedCoordinates
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkSamplerBlockMatchWindowCreateInfoQCOM
value to thepNext
chain.Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkSamplerCubicWeightsCreateInfoQCOM
value to thepNext
chain.Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkSamplerReductionModeCreateInfo
value to thepNext
chain.Prepends the specifiedVkSamplerReductionModeCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkSamplerYcbcrConversionInfo
value to thepNext
chain.Prepends the specifiedVkSamplerYcbcrConversionInfoKHR
value to thepNext
chain.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.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFO
value to thesType
field.boolean
unnormalizedCoordinates
(boolean value) Sets the specified value to theunnormalizedCoordinates
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkSamplerCreateInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkSamplerCreateInfo>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
magFilter
public int magFilter()- Returns:
- the value of the
magFilter
field.
-
minFilter
public int minFilter()- Returns:
- the value of the
minFilter
field.
-
mipmapMode
public int mipmapMode()- Returns:
- the value of the
mipmapMode
field.
-
addressModeU
public int addressModeU()- Returns:
- the value of the
addressModeU
field.
-
addressModeV
public int addressModeV()- Returns:
- the value of the
addressModeV
field.
-
addressModeW
public int addressModeW()- Returns:
- the value of the
addressModeW
field.
-
mipLodBias
public float mipLodBias()- Returns:
- the value of the
mipLodBias
field.
-
anisotropyEnable
public boolean anisotropyEnable()- Returns:
- the value of the
anisotropyEnable
field.
-
maxAnisotropy
public float maxAnisotropy()- Returns:
- the value of the
maxAnisotropy
field.
-
compareEnable
public boolean compareEnable()- Returns:
- the value of the
compareEnable
field.
-
compareOp
public int compareOp()- Returns:
- the value of the
compareOp
field.
-
minLod
public float minLod()- Returns:
- the value of the
minLod
field.
-
maxLod
public float maxLod()- Returns:
- the value of the
maxLod
field.
-
borderColor
public int borderColor()- Returns:
- the value of the
borderColor
field.
-
unnormalizedCoordinates
public boolean unnormalizedCoordinates()- Returns:
- the value of the
unnormalizedCoordinates
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFO
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkOpaqueCaptureDescriptorDataCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerBlockMatchWindowCreateInfoQCOM
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerCubicWeightsCreateInfoQCOM
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerReductionModeCreateInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerReductionModeCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerYcbcrConversionInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkSamplerYcbcrConversionInfoKHR
value to thepNext
chain. -
flags
Sets the specified value to theflags
field. -
magFilter
Sets the specified value to themagFilter
field. -
minFilter
Sets the specified value to theminFilter
field. -
mipmapMode
Sets the specified value to themipmapMode
field. -
addressModeU
Sets the specified value to theaddressModeU
field. -
addressModeV
Sets the specified value to theaddressModeV
field. -
addressModeW
Sets the specified value to theaddressModeW
field. -
mipLodBias
Sets the specified value to themipLodBias
field. -
anisotropyEnable
Sets the specified value to theanisotropyEnable
field. -
maxAnisotropy
Sets the specified value to themaxAnisotropy
field. -
compareEnable
Sets the specified value to thecompareEnable
field. -
compareOp
Sets the specified value to thecompareOp
field. -
minLod
Sets the specified value to theminLod
field. -
maxLod
Sets the specified value to themaxLod
field. -
borderColor
Sets the specified value to theborderColor
field. -
unnormalizedCoordinates
Sets the specified value to theunnormalizedCoordinates
field. -
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 newVkSamplerCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSamplerCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSamplerCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newVkSamplerCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSamplerCreateInfo.Buffer
instance 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 newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-