public class VkSamplerCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
magFilter values of FILTER_NEAREST and FILTER_LINEAR directly correspond to GL_NEAREST and GL_LINEAR magnification filters. minFilter and mipmapMode combine to correspond to the similarly named OpenGL minification filter of GL_minFilter_MIPMAP_mipmapMode (e.g. minFilter of FILTER_LINEAR and mipmapMode of SAMPLER_MIPMAP_MODE_NEAREST correspond to GL_LINEAR_MIPMAP_NEAREST).
There are no Vulkan filter modes that directly correspond to OpenGL minification filters of GL_LINEAR or GL_NEAREST, but they can be emulated using SAMPLER_MIPMAP_MODE_NEAREST, minLod = 0, and maxLod = 0.25, and using minFilter = FILTER_LINEAR or minFilter = FILTER_NEAREST, respectively.
Note that using a maxLod of zero would cause magnification to always be performed, and the magFilter 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 the minFilter and magFilter are equal, then using a maxLod 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. If maxSamplerAllocationCount is exceeded, vkCreateSampler will return ERROR_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 the maxSamplerAllocationCount limit.
mipLodBias must be less than or equal to VkPhysicalDeviceLimits::maxSamplerLodBiasmaxLod must be greater than or equal to minLodanisotropyEnable must be FALSEanisotropyEnable is TRUE, maxAnisotropy must be between 1.0 and VkPhysicalDeviceLimits::maxSamplerAnisotropy, inclusiveFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT is not set for the format, minFilter and magFilter must be equal to the sampler Y’CBCR conversion’s chromaFilterunnormalizedCoordinates is TRUE, minFilter and magFilter must be equalunnormalizedCoordinates is TRUE, mipmapMode must be SAMPLER_MIPMAP_MODE_NEARESTunnormalizedCoordinates is TRUE, minLod and maxLod must be zerounnormalizedCoordinates is TRUE, addressModeU and addressModeV must each be either SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE or SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDERunnormalizedCoordinates is TRUE, anisotropyEnable must be FALSEunnormalizedCoordinates is TRUE, compareEnable must be FALSEaddressModeU, addressModeV or addressModeW are SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, borderColor must be a valid VkBorderColor valueaddressModeU, addressModeV, and addressModeW must be SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, anisotropyEnable must be FALSE, and unnormalizedCoordinates must be FALSESAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT if sampler Y’CBCR conversion is enabledVK_KHR_sampler_mirror_clamp_to_edge extension is not enabled, addressModeU, addressModeV and addressModeW must not be SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGEcompareEnable is TRUE, compareOp must be a valid VkCompareOp valuemagFilter or minFilter is FILTER_CUBIC_EXT, anisotropyEnable must be FALSEcompareEnable is TRUE, the reductionMode member of VkSamplerReductionModeCreateInfoEXT must be SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXTflags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then minFilter and magFilter must be equal.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then mipmapMode must be SAMPLER_MIPMAP_MODE_NEAREST.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then minLod and maxLod must be zero.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then addressModeU and addressModeV must each be either SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE or SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then anisotropyEnable must be FALSE.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then compareEnable must be FALSE.flags includes SAMPLER_CREATE_SUBSAMPLED_BIT_EXT, then unnormalizedCoordinates must be FALSE.sType must be STRUCTURE_TYPE_SAMPLER_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkSamplerReductionModeCreateInfoEXT or VkSamplerYcbcrConversionInfosType member in the pNext chain must be uniqueflags must be a valid combination of VkSamplerCreateFlagBits valuesmagFilter must be a valid VkFilter valueminFilter must be a valid VkFilter valuemipmapMode must be a valid VkSamplerMipmapMode valueaddressModeU must be a valid VkSamplerAddressMode valueaddressModeV must be a valid VkSamplerAddressMode valueaddressModeW must be a valid VkSamplerAddressMode valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkSamplerCreateFlagBits describing additional parameters of the sampler.magFilter – a VkFilter value specifying the magnification filter to apply to lookups.minFilter – a VkFilter value specifying the minification filter to apply to lookups.mipmapMode – a VkSamplerMipmapMode value specifying the mipmap filter to apply to lookups.addressModeU – a VkSamplerAddressMode value specifying the addressing mode for outside [0..1] range for U coordinate.addressModeV – a VkSamplerAddressMode value specifying the addressing mode for outside [0..1] range for V coordinate.addressModeW – a VkSamplerAddressMode 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, or FALSE otherwise.maxAnisotropy – the anisotropy value clamp used by the sampler when anisotropyEnable is TRUE. If anisotropyEnable is FALSE, maxAnisotropy is ignored.compareEnable – TRUE to enable comparison against a reference value during lookups, or FALSE otherwise.
compareOp – a VkCompareOp value specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.minLod – minLod and maxLod are the values used to clamp the computed LOD value, as described in the Level-of-Detail Operation section.maxLod – see minLodborderColor – a VkBorderColor 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 to TRUE, 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 to FALSE the range of image coordinates is zero to one.
When unnormalizedCoordinates is TRUE, images the sampler is used with in the shader have the following requirements:
viewType must be either IMAGE_VIEW_TYPE_1D or IMAGE_VIEW_TYPE_2D.When unnormalizedCoordinates is TRUE, image built-in functions in the shader that use the sampler have the following requirements:
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSamplerCreateInfo.Buffer
An array of
VkSamplerCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESSMODEU
The struct member offsets.
|
static int |
ADDRESSMODEV
The struct member offsets.
|
static int |
ADDRESSMODEW
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ANISOTROPYENABLE
The struct member offsets.
|
static int |
BORDERCOLOR
The struct member offsets.
|
static int |
COMPAREENABLE
The struct member offsets.
|
static int |
COMPAREOP
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
MAGFILTER
The struct member offsets.
|
static int |
MAXANISOTROPY
The struct member offsets.
|
static int |
MAXLOD
The struct member offsets.
|
static int |
MINFILTER
The struct member offsets.
|
static int |
MINLOD
The struct member offsets.
|
static int |
MIPLODBIAS
The struct member offsets.
|
static int |
MIPMAPMODE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
UNNORMALIZEDCOORDINATES
The struct member offsets.
|
| Constructor and Description |
|---|
VkSamplerCreateInfo(java.nio.ByteBuffer container)
Creates a
VkSamplerCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
addressModeU()
Returns the value of the
addressModeU field. |
VkSamplerCreateInfo |
addressModeU(int value)
Sets the specified value to the
addressModeU field. |
int |
addressModeV()
Returns the value of the
addressModeV field. |
VkSamplerCreateInfo |
addressModeV(int value)
Sets the specified value to the
addressModeV field. |
int |
addressModeW()
Returns the value of the
addressModeW field. |
VkSamplerCreateInfo |
addressModeW(int value)
Sets the specified value to the
addressModeW field. |
boolean |
anisotropyEnable()
Returns the value of the
anisotropyEnable field. |
VkSamplerCreateInfo |
anisotropyEnable(boolean value)
Sets the specified value to the
anisotropyEnable field. |
int |
borderColor()
Returns the value of the
borderColor field. |
VkSamplerCreateInfo |
borderColor(int value)
Sets the specified value to the
borderColor field. |
static VkSamplerCreateInfo |
calloc()
Returns a new
VkSamplerCreateInfo instance allocated with memCalloc. |
static VkSamplerCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated with memCalloc. |
static VkSamplerCreateInfo |
callocStack()
Returns a new
VkSamplerCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSamplerCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSamplerCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSamplerCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSamplerCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
boolean |
compareEnable()
Returns the value of the
compareEnable field. |
VkSamplerCreateInfo |
compareEnable(boolean value)
Sets the specified value to the
compareEnable field. |
int |
compareOp()
Returns the value of the
compareOp field. |
VkSamplerCreateInfo |
compareOp(int value)
Sets the specified value to the
compareOp field. |
static VkSamplerCreateInfo |
create()
Returns a new
VkSamplerCreateInfo instance allocated with BufferUtils. |
static VkSamplerCreateInfo.Buffer |
create(int capacity)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated with BufferUtils. |
static VkSamplerCreateInfo |
create(long address)
Returns a new
VkSamplerCreateInfo instance for the specified memory address. |
static VkSamplerCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkSamplerCreateInfo.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 the
flags field. |
VkSamplerCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
int |
magFilter()
Returns the value of the
magFilter field. |
VkSamplerCreateInfo |
magFilter(int value)
Sets the specified value to the
magFilter field. |
static VkSamplerCreateInfo |
malloc()
Returns a new
VkSamplerCreateInfo instance allocated with memAlloc. |
static VkSamplerCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated with memAlloc. |
static VkSamplerCreateInfo |
mallocStack()
Returns a new
VkSamplerCreateInfo instance allocated on the thread-local MemoryStack. |
static VkSamplerCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkSamplerCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkSamplerCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSamplerCreateInfo instance allocated on the specified MemoryStack. |
float |
maxAnisotropy()
Returns the value of the
maxAnisotropy field. |
VkSamplerCreateInfo |
maxAnisotropy(float value)
Sets the specified value to the
maxAnisotropy field. |
float |
maxLod()
Returns the value of the
maxLod field. |
VkSamplerCreateInfo |
maxLod(float value)
Sets the specified value to the
maxLod field. |
int |
minFilter()
Returns the value of the
minFilter field. |
VkSamplerCreateInfo |
minFilter(int value)
Sets the specified value to the
minFilter field. |
float |
minLod()
Returns the value of the
minLod field. |
VkSamplerCreateInfo |
minLod(float value)
Sets the specified value to the
minLod field. |
float |
mipLodBias()
Returns the value of the
mipLodBias field. |
VkSamplerCreateInfo |
mipLodBias(float value)
Sets the specified value to the
mipLodBias field. |
int |
mipmapMode()
Returns the value of the
mipmapMode field. |
VkSamplerCreateInfo |
mipmapMode(int value)
Sets the specified value to the
mipmapMode field. |
static int |
naddressModeU(long struct)
Unsafe version of
addressModeU(). |
static void |
naddressModeU(long struct,
int value)
Unsafe version of
addressModeU. |
static int |
naddressModeV(long struct)
Unsafe version of
addressModeV(). |
static void |
naddressModeV(long struct,
int value)
Unsafe version of
addressModeV. |
static int |
naddressModeW(long struct)
Unsafe version of
addressModeW(). |
static void |
naddressModeW(long struct,
int value)
Unsafe version of
addressModeW. |
static int |
nanisotropyEnable(long struct)
Unsafe version of
anisotropyEnable(). |
static void |
nanisotropyEnable(long struct,
int value)
Unsafe version of
anisotropyEnable. |
static int |
nborderColor(long struct)
Unsafe version of
borderColor(). |
static void |
nborderColor(long struct,
int value)
Unsafe version of
borderColor. |
static int |
ncompareEnable(long struct)
Unsafe version of
compareEnable(). |
static void |
ncompareEnable(long struct,
int value)
Unsafe version of
compareEnable. |
static int |
ncompareOp(long struct)
Unsafe version of
compareOp(). |
static void |
ncompareOp(long struct,
int value)
Unsafe version of
compareOp. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nmagFilter(long struct)
Unsafe version of
magFilter(). |
static void |
nmagFilter(long struct,
int value)
Unsafe version of
magFilter. |
static float |
nmaxAnisotropy(long struct)
Unsafe version of
maxAnisotropy(). |
static void |
nmaxAnisotropy(long struct,
float value)
Unsafe version of
maxAnisotropy. |
static float |
nmaxLod(long struct)
Unsafe version of
maxLod(). |
static void |
nmaxLod(long struct,
float value)
Unsafe version of
maxLod. |
static int |
nminFilter(long struct)
Unsafe version of
minFilter(). |
static void |
nminFilter(long struct,
int value)
Unsafe version of
minFilter. |
static float |
nminLod(long struct)
Unsafe version of
minLod(). |
static void |
nminLod(long struct,
float value)
Unsafe version of
minLod. |
static float |
nmipLodBias(long struct)
Unsafe version of
mipLodBias(). |
static void |
nmipLodBias(long struct,
float value)
Unsafe version of
mipLodBias. |
static int |
nmipmapMode(long struct)
Unsafe version of
mipmapMode(). |
static void |
nmipmapMode(long struct,
int value)
Unsafe version of
mipmapMode. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nunnormalizedCoordinates(long struct)
Unsafe version of
unnormalizedCoordinates(). |
static void |
nunnormalizedCoordinates(long struct,
int value)
Unsafe version of
unnormalizedCoordinates. |
long |
pNext()
Returns the value of the
pNext field. |
VkSamplerCreateInfo |
pNext(long value)
Sets the specified value to the
pNext 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 the
sType field. |
VkSamplerCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
boolean |
unnormalizedCoordinates()
Returns the value of the
unnormalizedCoordinates field. |
VkSamplerCreateInfo |
unnormalizedCoordinates(boolean value)
Sets the specified value to the
unnormalizedCoordinates field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int MAGFILTER
public static final int MINFILTER
public static final int MIPMAPMODE
public static final int ADDRESSMODEU
public static final int ADDRESSMODEV
public static final int ADDRESSMODEW
public static final int MIPLODBIAS
public static final int ANISOTROPYENABLE
public static final int MAXANISOTROPY
public static final int COMPAREENABLE
public static final int COMPAREOP
public static final int MINLOD
public static final int MAXLOD
public static final int BORDERCOLOR
public static final int UNNORMALIZEDCOORDINATES
public VkSamplerCreateInfo(java.nio.ByteBuffer container)
VkSamplerCreateInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int magFilter()
magFilter field.public int minFilter()
minFilter field.public int mipmapMode()
mipmapMode field.public int addressModeU()
addressModeU field.public int addressModeV()
addressModeV field.public int addressModeW()
addressModeW field.public float mipLodBias()
mipLodBias field.public boolean anisotropyEnable()
anisotropyEnable field.public float maxAnisotropy()
maxAnisotropy field.public boolean compareEnable()
compareEnable field.public int compareOp()
compareOp field.public float minLod()
minLod field.public float maxLod()
maxLod field.public int borderColor()
borderColor field.public boolean unnormalizedCoordinates()
unnormalizedCoordinates field.public VkSamplerCreateInfo sType(int value)
sType field.public VkSamplerCreateInfo pNext(long value)
pNext field.public VkSamplerCreateInfo flags(int value)
flags field.public VkSamplerCreateInfo magFilter(int value)
magFilter field.public VkSamplerCreateInfo minFilter(int value)
minFilter field.public VkSamplerCreateInfo mipmapMode(int value)
mipmapMode field.public VkSamplerCreateInfo addressModeU(int value)
addressModeU field.public VkSamplerCreateInfo addressModeV(int value)
addressModeV field.public VkSamplerCreateInfo addressModeW(int value)
addressModeW field.public VkSamplerCreateInfo mipLodBias(float value)
mipLodBias field.public VkSamplerCreateInfo anisotropyEnable(boolean value)
anisotropyEnable field.public VkSamplerCreateInfo maxAnisotropy(float value)
maxAnisotropy field.public VkSamplerCreateInfo compareEnable(boolean value)
compareEnable field.public VkSamplerCreateInfo compareOp(int value)
compareOp field.public VkSamplerCreateInfo minLod(float value)
minLod field.public VkSamplerCreateInfo maxLod(float value)
maxLod field.public VkSamplerCreateInfo borderColor(int value)
borderColor field.public VkSamplerCreateInfo unnormalizedCoordinates(boolean value)
unnormalizedCoordinates field.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)
public VkSamplerCreateInfo set(VkSamplerCreateInfo src)
src - the source structpublic static VkSamplerCreateInfo malloc()
VkSamplerCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkSamplerCreateInfo calloc()
VkSamplerCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkSamplerCreateInfo create()
VkSamplerCreateInfo instance allocated with BufferUtils.public static VkSamplerCreateInfo create(long address)
VkSamplerCreateInfo instance for the specified memory address.@Nullable public static VkSamplerCreateInfo createSafe(long address)
public static VkSamplerCreateInfo.Buffer malloc(int capacity)
VkSamplerCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer calloc(int capacity)
VkSamplerCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer create(int capacity)
VkSamplerCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer create(long address, int capacity)
VkSamplerCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSamplerCreateInfo.Buffer createSafe(long address, int capacity)
public static VkSamplerCreateInfo mallocStack()
VkSamplerCreateInfo instance allocated on the thread-local MemoryStack.public static VkSamplerCreateInfo callocStack()
VkSamplerCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSamplerCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkSamplerCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSamplerCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkSamplerCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSamplerCreateInfo.Buffer mallocStack(int capacity)
VkSamplerCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer callocStack(int capacity)
VkSamplerCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSamplerCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nmagFilter(long struct)
magFilter().public static int nminFilter(long struct)
minFilter().public static int nmipmapMode(long struct)
mipmapMode().public static int naddressModeU(long struct)
addressModeU().public static int naddressModeV(long struct)
addressModeV().public static int naddressModeW(long struct)
addressModeW().public static float nmipLodBias(long struct)
mipLodBias().public static int nanisotropyEnable(long struct)
anisotropyEnable().public static float nmaxAnisotropy(long struct)
maxAnisotropy().public static int ncompareEnable(long struct)
compareEnable().public static int ncompareOp(long struct)
compareOp().public static float nminLod(long struct)
minLod().public static float nmaxLod(long struct)
maxLod().public static int nborderColor(long struct)
borderColor().public static int nunnormalizedCoordinates(long struct)
unnormalizedCoordinates().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nmagFilter(long struct,
int value)
magFilter.public static void nminFilter(long struct,
int value)
minFilter.public static void nmipmapMode(long struct,
int value)
mipmapMode.public static void naddressModeU(long struct,
int value)
addressModeU.public static void naddressModeV(long struct,
int value)
addressModeV.public static void naddressModeW(long struct,
int value)
addressModeW.public static void nmipLodBias(long struct,
float value)
mipLodBias.public static void nanisotropyEnable(long struct,
int value)
anisotropyEnable.public static void nmaxAnisotropy(long struct,
float value)
maxAnisotropy.public static void ncompareEnable(long struct,
int value)
compareEnable.public static void ncompareOp(long struct,
int value)
compareOp.public static void nminLod(long struct,
float value)
minLod.public static void nmaxLod(long struct,
float value)
maxLod.public static void nborderColor(long struct,
int value)
borderColor.public static void nunnormalizedCoordinates(long struct,
int value)
unnormalizedCoordinates.Copyright LWJGL. All Rights Reserved. License terms.