Class VkSamplerCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSamplerCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created sampler.Description
Mapping of OpenGL to Vulkan filter modes
magFilter
values ofFILTER_NEAREST
andFILTER_LINEAR
directly correspond toGL_NEAREST
andGL_LINEAR
magnification filters.minFilter
andmipmapMode
combine to correspond to the similarly named OpenGL minification filter ofGL_minFilter_MIPMAP_mipmapMode
(e.g.minFilter
ofFILTER_LINEAR
andmipmapMode
ofSAMPLER_MIPMAP_MODE_NEAREST
correspond toGL_LINEAR_MIPMAP_NEAREST
).There are no Vulkan filter modes that directly correspond to OpenGL minification filters of
GL_LINEAR
orGL_NEAREST
, but they can be emulated usingSAMPLER_MIPMAP_MODE_NEAREST
,minLod
= 0, andmaxLod
= 0.25, and usingminFilter
=FILTER_LINEAR
orminFilter
=FILTER_NEAREST
, respectively.Note that using a
maxLod
of zero would cause magnification to always be performed, and themagFilter
to always be used. This is valid, just not an exact match for OpenGL behavior. Clamping the maximum LOD to 0.25 allows theλ
value to be non-zero and minification to be performed, while still always rounding down to the base level. If theminFilter
andmagFilter
are equal, then using amaxLod
of zero also works.The maximum number of sampler objects which can be simultaneously created on a device is implementation-dependent and specified by the maxSamplerAllocationCount member of the
VkPhysicalDeviceLimits
structure. IfmaxSamplerAllocationCount
is exceeded,vkCreateSampler
will returnERROR_TOO_MANY_OBJECTS
.Since
VkSampler
is a non-dispatchable handle type, implementations may return the same handle for sampler state vectors that are identical. In such cases, all such objects would only count once against themaxSamplerAllocationCount
limit.Valid Usage
- The absolute value of
mipLodBias
must be less than or equal toVkPhysicalDeviceLimits
::maxSamplerLodBias
maxLod
must be greater than or equal tominLod
- If the anisotropic sampling feature is not enabled,
anisotropyEnable
must beFALSE
- If
anisotropyEnable
isTRUE
,maxAnisotropy
must be between1.0
andVkPhysicalDeviceLimits
::maxSamplerAnisotropy
, inclusive - If sampler Y’CBCR conversion is enabled and
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
is not set for the format,minFilter
andmagFilter
must be equal to the sampler Y’CBCR conversion’schromaFilter
- If
unnormalizedCoordinates
isTRUE
,minFilter
andmagFilter
must be equal - If
unnormalizedCoordinates
isTRUE
,mipmapMode
must beSAMPLER_MIPMAP_MODE_NEAREST
- If
unnormalizedCoordinates
isTRUE
,minLod
andmaxLod
must be zero - If
unnormalizedCoordinates
isTRUE
,addressModeU
andaddressModeV
must each be eitherSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
orSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER
- If
unnormalizedCoordinates
isTRUE
,anisotropyEnable
must beFALSE
- If
unnormalizedCoordinates
isTRUE
,compareEnable
must beFALSE
- If any of
addressModeU
,addressModeV
oraddressModeW
areSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER
,borderColor
must be a validVkBorderColor
value - If sampler Y’CBCR conversion is enabled,
addressModeU
,addressModeV
, andaddressModeW
must beSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
,anisotropyEnable
must beFALSE
, andunnormalizedCoordinates
must beFALSE
- The sampler reduction mode must be set to
SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT
if sampler Y’CBCR conversion is enabled - If the
VK_KHR_sampler_mirror_clamp_to_edge
extension is not enabled,addressModeU
,addressModeV
andaddressModeW
must not beSAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE
- If
compareEnable
isTRUE
,compareOp
must be a validVkCompareOp
value - If either
magFilter
orminFilter
isFILTER_CUBIC_EXT
,anisotropyEnable
must beFALSE
- If
compareEnable
isTRUE
, thereductionMode
member ofVkSamplerReductionModeCreateInfoEXT
must beSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT
- If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenminFilter
andmagFilter
must be equal. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenmipmapMode
must beSAMPLER_MIPMAP_MODE_NEAREST
. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenminLod
andmaxLod
must be zero. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenaddressModeU
andaddressModeV
must each be eitherSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
orSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER
. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenanisotropyEnable
must beFALSE
. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thencompareEnable
must beFALSE
. - If
flags
includesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT
, thenunnormalizedCoordinates
must beFALSE
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SAMPLER_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofVkSamplerReductionModeCreateInfoEXT
orVkSamplerYcbcrConversionInfo
- Each
sType
member in thepNext
chain must be unique flags
must be a valid combination ofVkSamplerCreateFlagBits
valuesmagFilter
must be a validVkFilter
valueminFilter
must be a validVkFilter
valuemipmapMode
must be a validVkSamplerMipmapMode
valueaddressModeU
must be a validVkSamplerAddressMode
valueaddressModeV
must be a validVkSamplerAddressMode
valueaddressModeW
must be a validVkSamplerAddressMode
value
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask ofVkSamplerCreateFlagBits
describing additional parameters of the sampler.magFilter
– aVkFilter
value specifying the magnification filter to apply to lookups.minFilter
– aVkFilter
value specifying the minification filter to apply to lookups.mipmapMode
– aVkSamplerMipmapMode
value specifying the mipmap filter to apply to lookups.addressModeU
– aVkSamplerAddressMode
value specifying the addressing mode for outside [0..1] range for U coordinate.addressModeV
– aVkSamplerAddressMode
value specifying the addressing mode for outside [0..1] range for V coordinate.addressModeW
– aVkSamplerAddressMode
value specifying the addressing mode for outside [0..1] range for W coordinate.mipLodBias
– the bias to be added to mipmap LOD (level-of-detail) calculation and bias provided by image sampling functions in SPIR-V, as described in the Level-of-Detail Operation section.anisotropyEnable
–TRUE
to enable anisotropic filtering, as described in the Texel Anisotropic Filtering section, orFALSE
otherwise.maxAnisotropy
– the anisotropy value clamp used by the sampler whenanisotropyEnable
isTRUE
. IfanisotropyEnable
isFALSE
,maxAnisotropy
is ignored.compareEnable
–TRUE
to enable comparison against a reference value during lookups, orFALSE
otherwise.- Note: Some implementations will default to shader state if this member does not match.
compareOp
– aVkCompareOp
value specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.minLod
–minLod
andmaxLod
are the values used to clamp the computed LOD value, as described in the Level-of-Detail Operation section.maxLod
– seeminLod
borderColor
– aVkBorderColor
value specifying the predefined border color to use.unnormalizedCoordinates
– controls whether to use unnormalized or normalized texel coordinates to address texels of the image. When set toTRUE
, the range of the image coordinates used to lookup the texel is in the range of zero to the image dimensions for x, y and z. When set toFALSE
the range of image coordinates is zero to one.When
unnormalizedCoordinates
isTRUE
, images the sampler is used with in the shader have the following requirements:- The
viewType
must be eitherIMAGE_VIEW_TYPE_1D
orIMAGE_VIEW_TYPE_2D
. - The image view must have a single layer and a single mip level.
When
unnormalizedCoordinates
isTRUE
, image built-in functions in the shader that use the sampler have the following requirements:- The functions must not use projection.
- The functions must not use offsets.
- The
Layout
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 Classes Modifier and Type Class Description static class
VkSamplerCreateInfo.Buffer
An array ofVkSamplerCreateInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ADDRESSMODEU
ADDRESSMODEV
ADDRESSMODEWThe struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
ANISOTROPYENABLE
BORDERCOLOR
COMPAREENABLE
COMPAREOP
FLAGS
MAGFILTER
MAXANISOTROPY
MAXLOD
MINFILTER
MINLOD
MIPLODBIAS
MIPMAPMODE
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
UNNORMALIZEDCOORDINATESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSamplerCreateInfo(java.nio.ByteBuffer container)
Creates aVkSamplerCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addressModeU()
Returns the value of theaddressModeU
field.VkSamplerCreateInfo
addressModeU(int value)
Sets the specified value to theaddressModeU
field.int
addressModeV()
Returns the value of theaddressModeV
field.VkSamplerCreateInfo
addressModeV(int value)
Sets the specified value to theaddressModeV
field.int
addressModeW()
Returns the value of theaddressModeW
field.VkSamplerCreateInfo
addressModeW(int value)
Sets the specified value to theaddressModeW
field.boolean
anisotropyEnable()
Returns the value of theanisotropyEnable
field.VkSamplerCreateInfo
anisotropyEnable(boolean value)
Sets the specified value to theanisotropyEnable
field.int
borderColor()
Returns the value of theborderColor
field.VkSamplerCreateInfo
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
callocStack()
Returns a newVkSamplerCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSamplerCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSamplerCreateInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSamplerCreateInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.boolean
compareEnable()
Returns the value of thecompareEnable
field.VkSamplerCreateInfo
compareEnable(boolean value)
Sets the specified value to thecompareEnable
field.int
compareOp()
Returns the value of thecompareOp
field.VkSamplerCreateInfo
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 VkSamplerCreateInfo
createSafe(long address)
static VkSamplerCreateInfo.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkSamplerCreateInfo
flags(int value)
Sets the specified value to theflags
field.int
magFilter()
Returns the value of themagFilter
field.VkSamplerCreateInfo
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
mallocStack()
Returns a newVkSamplerCreateInfo
instance allocated on the thread-localMemoryStack
.static VkSamplerCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkSamplerCreateInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkSamplerCreateInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.float
maxAnisotropy()
Returns the value of themaxAnisotropy
field.VkSamplerCreateInfo
maxAnisotropy(float value)
Sets the specified value to themaxAnisotropy
field.float
maxLod()
Returns the value of themaxLod
field.VkSamplerCreateInfo
maxLod(float value)
Sets the specified value to themaxLod
field.int
minFilter()
Returns the value of theminFilter
field.VkSamplerCreateInfo
minFilter(int value)
Sets the specified value to theminFilter
field.float
minLod()
Returns the value of theminLod
field.VkSamplerCreateInfo
minLod(float value)
Sets the specified value to theminLod
field.float
mipLodBias()
Returns the value of themipLodBias
field.VkSamplerCreateInfo
mipLodBias(float value)
Sets the specified value to themipLodBias
field.int
mipmapMode()
Returns the value of themipmapMode
field.VkSamplerCreateInfo
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()
Returns the value of thepNext
field.VkSamplerCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.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.VkSamplerCreateInfo
set(VkSamplerCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkSamplerCreateInfo
sType(int value)
Sets the specified value to thesType
field.boolean
unnormalizedCoordinates()
Returns the value of theunnormalizedCoordinates
field.VkSamplerCreateInfo
unnormalizedCoordinates(boolean value)
Sets the specified value to theunnormalizedCoordinates
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, FLAGS, MAGFILTER, MINFILTER, MIPMAPMODE, ADDRESSMODEU, ADDRESSMODEV, ADDRESSMODEW, MIPLODBIAS, ANISOTROPYENABLE, MAXANISOTROPY, COMPAREENABLE, COMPAREOP, MINLOD, MAXLOD, BORDERCOLOR, UNNORMALIZEDCOORDINATES
The struct member offsets.
-
-
Constructor Detail
-
VkSamplerCreateInfo
public VkSamplerCreateInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
magFilter
public int magFilter()
Returns the value of themagFilter
field.
-
minFilter
public int minFilter()
Returns the value of theminFilter
field.
-
mipmapMode
public int mipmapMode()
Returns the value of themipmapMode
field.
-
addressModeU
public int addressModeU()
Returns the value of theaddressModeU
field.
-
addressModeV
public int addressModeV()
Returns the value of theaddressModeV
field.
-
addressModeW
public int addressModeW()
Returns the value of theaddressModeW
field.
-
mipLodBias
public float mipLodBias()
Returns the value of themipLodBias
field.
-
anisotropyEnable
public boolean anisotropyEnable()
Returns the value of theanisotropyEnable
field.
-
maxAnisotropy
public float maxAnisotropy()
Returns the value of themaxAnisotropy
field.
-
compareEnable
public boolean compareEnable()
Returns the value of thecompareEnable
field.
-
compareOp
public int compareOp()
Returns the value of thecompareOp
field.
-
minLod
public float minLod()
Returns the value of theminLod
field.
-
maxLod
public float maxLod()
Returns the value of themaxLod
field.
-
borderColor
public int borderColor()
Returns the value of theborderColor
field.
-
unnormalizedCoordinates
public boolean unnormalizedCoordinates()
Returns the value of theunnormalizedCoordinates
field.
-
sType
public VkSamplerCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSamplerCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkSamplerCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
magFilter
public VkSamplerCreateInfo magFilter(int value)
Sets the specified value to themagFilter
field.
-
minFilter
public VkSamplerCreateInfo minFilter(int value)
Sets the specified value to theminFilter
field.
-
mipmapMode
public VkSamplerCreateInfo mipmapMode(int value)
Sets the specified value to themipmapMode
field.
-
addressModeU
public VkSamplerCreateInfo addressModeU(int value)
Sets the specified value to theaddressModeU
field.
-
addressModeV
public VkSamplerCreateInfo addressModeV(int value)
Sets the specified value to theaddressModeV
field.
-
addressModeW
public VkSamplerCreateInfo addressModeW(int value)
Sets the specified value to theaddressModeW
field.
-
mipLodBias
public VkSamplerCreateInfo mipLodBias(float value)
Sets the specified value to themipLodBias
field.
-
anisotropyEnable
public VkSamplerCreateInfo anisotropyEnable(boolean value)
Sets the specified value to theanisotropyEnable
field.
-
maxAnisotropy
public VkSamplerCreateInfo maxAnisotropy(float value)
Sets the specified value to themaxAnisotropy
field.
-
compareEnable
public VkSamplerCreateInfo compareEnable(boolean value)
Sets the specified value to thecompareEnable
field.
-
compareOp
public VkSamplerCreateInfo compareOp(int value)
Sets the specified value to thecompareOp
field.
-
minLod
public VkSamplerCreateInfo minLod(float value)
Sets the specified value to theminLod
field.
-
maxLod
public VkSamplerCreateInfo maxLod(float value)
Sets the specified value to themaxLod
field.
-
borderColor
public VkSamplerCreateInfo borderColor(int value)
Sets the specified value to theborderColor
field.
-
unnormalizedCoordinates
public VkSamplerCreateInfo unnormalizedCoordinates(boolean value)
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
public VkSamplerCreateInfo set(VkSamplerCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerCreateInfo malloc()
Returns a newVkSamplerCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSamplerCreateInfo calloc()
Returns a newVkSamplerCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSamplerCreateInfo create()
Returns a newVkSamplerCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkSamplerCreateInfo create(long address)
Returns a newVkSamplerCreateInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerCreateInfo createSafe(long address)
-
malloc
public static VkSamplerCreateInfo.Buffer malloc(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSamplerCreateInfo.Buffer calloc(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSamplerCreateInfo.Buffer create(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSamplerCreateInfo.Buffer create(long address, int capacity)
Create aVkSamplerCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSamplerCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSamplerCreateInfo mallocStack()
Returns a newVkSamplerCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSamplerCreateInfo callocStack()
Returns a newVkSamplerCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSamplerCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSamplerCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSamplerCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSamplerCreateInfo.Buffer callocStack(int capacity)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSamplerCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSamplerCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
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
.
-
-