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.NativeResourceStructure specifying parameters of a newly created sampler.Description
Mapping of OpenGL to Vulkan filter modes
magFiltervalues ofFILTER_NEARESTandFILTER_LINEARdirectly correspond toGL_NEARESTandGL_LINEARmagnification filters.minFilterandmipmapModecombine to correspond to the similarly named OpenGL minification filter ofGL_minFilter_MIPMAP_mipmapMode(e.g.minFilterofFILTER_LINEARandmipmapModeofSAMPLER_MIPMAP_MODE_NEARESTcorrespond toGL_LINEAR_MIPMAP_NEAREST).There are no Vulkan filter modes that directly correspond to OpenGL minification filters of
GL_LINEARorGL_NEAREST, but they can be emulated usingSAMPLER_MIPMAP_MODE_NEAREST,minLod= 0, andmaxLod= 0.25, and usingminFilter=FILTER_LINEARorminFilter=FILTER_NEAREST, respectively.Note that using a
maxLodof zero would cause magnification to always be performed, and themagFilterto 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 theminFilterandmagFilterare equal, then using amaxLodof 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
VkPhysicalDeviceLimitsstructure. IfmaxSamplerAllocationCountis exceeded,vkCreateSamplerwill returnERROR_TOO_MANY_OBJECTS.Since
VkSampleris 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 themaxSamplerAllocationCountlimit.Valid Usage
- The absolute value of
mipLodBiasmust be less than or equal toVkPhysicalDeviceLimits::maxSamplerLodBias maxLodmust be greater than or equal tominLod- If the anisotropic sampling feature is not enabled,
anisotropyEnablemust beFALSE - If
anisotropyEnableisTRUE,maxAnisotropymust be between1.0andVkPhysicalDeviceLimits::maxSamplerAnisotropy, inclusive - If sampler Y’CBCR conversion is enabled and
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BITis not set for the format,minFilterandmagFiltermust be equal to the sampler Y’CBCR conversion’schromaFilter - If
unnormalizedCoordinatesisTRUE,minFilterandmagFiltermust be equal - If
unnormalizedCoordinatesisTRUE,mipmapModemust beSAMPLER_MIPMAP_MODE_NEAREST - If
unnormalizedCoordinatesisTRUE,minLodandmaxLodmust be zero - If
unnormalizedCoordinatesisTRUE,addressModeUandaddressModeVmust each be eitherSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGEorSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - If
unnormalizedCoordinatesisTRUE,anisotropyEnablemust beFALSE - If
unnormalizedCoordinatesisTRUE,compareEnablemust beFALSE - If any of
addressModeU,addressModeVoraddressModeWareSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER,borderColormust be a validVkBorderColorvalue - If sampler Y’CBCR conversion is enabled,
addressModeU,addressModeV, andaddressModeWmust beSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE,anisotropyEnablemust beFALSE, andunnormalizedCoordinatesmust beFALSE - The sampler reduction mode must be set to
SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXTif sampler Y’CBCR conversion is enabled - If the
VK_KHR_sampler_mirror_clamp_to_edgeextension is not enabled,addressModeU,addressModeVandaddressModeWmust not beSAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE - If
compareEnableisTRUE,compareOpmust be a validVkCompareOpvalue - If either
magFilterorminFilterisFILTER_CUBIC_EXT,anisotropyEnablemust beFALSE - If
compareEnableisTRUE, thereductionModemember ofVkSamplerReductionModeCreateInfoEXTmust beSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenminFilterandmagFiltermust be equal. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenmipmapModemust beSAMPLER_MIPMAP_MODE_NEAREST. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenminLodandmaxLodmust be zero. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenaddressModeUandaddressModeVmust each be eitherSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGEorSAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenanisotropyEnablemust beFALSE. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thencompareEnablemust beFALSE. - If
flagsincludesSAMPLER_CREATE_SUBSAMPLED_BIT_EXT, thenunnormalizedCoordinatesmust beFALSE.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SAMPLER_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkSamplerReductionModeCreateInfoEXTorVkSamplerYcbcrConversionInfo - Each
sTypemember in thepNextchain must be unique flagsmust be a valid combination ofVkSamplerCreateFlagBitsvaluesmagFiltermust be a validVkFiltervalueminFiltermust be a validVkFiltervaluemipmapModemust be a validVkSamplerMipmapModevalueaddressModeUmust be a validVkSamplerAddressModevalueaddressModeVmust be a validVkSamplerAddressModevalueaddressModeWmust be a validVkSamplerAddressModevalue
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkSamplerCreateFlagBitsdescribing additional parameters of the sampler.magFilter– aVkFiltervalue specifying the magnification filter to apply to lookups.minFilter– aVkFiltervalue specifying the minification filter to apply to lookups.mipmapMode– aVkSamplerMipmapModevalue specifying the mipmap filter to apply to lookups.addressModeU– aVkSamplerAddressModevalue specifying the addressing mode for outside [0..1] range for U coordinate.addressModeV– aVkSamplerAddressModevalue specifying the addressing mode for outside [0..1] range for V coordinate.addressModeW– aVkSamplerAddressModevalue 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–TRUEto enable anisotropic filtering, as described in the Texel Anisotropic Filtering section, orFALSEotherwise.maxAnisotropy– the anisotropy value clamp used by the sampler whenanisotropyEnableisTRUE. IfanisotropyEnableisFALSE,maxAnisotropyis ignored.compareEnable–TRUEto enable comparison against a reference value during lookups, orFALSEotherwise.- Note: Some implementations will default to shader state if this member does not match.
compareOp– aVkCompareOpvalue specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.minLod–minLodandmaxLodare the values used to clamp the computed LOD value, as described in the Level-of-Detail Operation section.maxLod– seeminLodborderColor– aVkBorderColorvalue 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 toFALSEthe range of image coordinates is zero to one.When
unnormalizedCoordinatesisTRUE, images the sampler is used with in the shader have the following requirements:- The
viewTypemust be eitherIMAGE_VIEW_TYPE_1DorIMAGE_VIEW_TYPE_2D. - The image view must have a single layer and a single mip level.
When
unnormalizedCoordinatesisTRUE, 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 classVkSamplerCreateInfo.BufferAn array ofVkSamplerCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intADDRESSMODEU
ADDRESSMODEV
ADDRESSMODEWThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intANISOTROPYENABLE
BORDERCOLOR
COMPAREENABLE
COMPAREOP
FLAGS
MAGFILTER
MAXANISOTROPY
MAXLOD
MINFILTER
MINLOD
MIPLODBIAS
MIPMAPMODE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
UNNORMALIZEDCOORDINATESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSamplerCreateInfo(java.nio.ByteBuffer container)Creates aVkSamplerCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddressModeU()Returns the value of theaddressModeUfield.VkSamplerCreateInfoaddressModeU(int value)Sets the specified value to theaddressModeUfield.intaddressModeV()Returns the value of theaddressModeVfield.VkSamplerCreateInfoaddressModeV(int value)Sets the specified value to theaddressModeVfield.intaddressModeW()Returns the value of theaddressModeWfield.VkSamplerCreateInfoaddressModeW(int value)Sets the specified value to theaddressModeWfield.booleananisotropyEnable()Returns the value of theanisotropyEnablefield.VkSamplerCreateInfoanisotropyEnable(boolean value)Sets the specified value to theanisotropyEnablefield.intborderColor()Returns the value of theborderColorfield.VkSamplerCreateInfoborderColor(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 VkSamplerCreateInfocallocStack()Returns a newVkSamplerCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfo.BuffercallocStack(int capacity)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancompareEnable()Returns the value of thecompareEnablefield.VkSamplerCreateInfocompareEnable(boolean value)Sets the specified value to thecompareEnablefield.intcompareOp()Returns the value of thecompareOpfield.VkSamplerCreateInfocompareOp(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 VkSamplerCreateInfocreateSafe(long address)static VkSamplerCreateInfo.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkSamplerCreateInfoflags(int value)Sets the specified value to theflagsfield.intmagFilter()Returns the value of themagFilterfield.VkSamplerCreateInfomagFilter(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 VkSamplerCreateInfomallocStack()Returns a newVkSamplerCreateInfoinstance allocated on the thread-localMemoryStack.static VkSamplerCreateInfo.BuffermallocStack(int capacity)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkSamplerCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.floatmaxAnisotropy()Returns the value of themaxAnisotropyfield.VkSamplerCreateInfomaxAnisotropy(float value)Sets the specified value to themaxAnisotropyfield.floatmaxLod()Returns the value of themaxLodfield.VkSamplerCreateInfomaxLod(float value)Sets the specified value to themaxLodfield.intminFilter()Returns the value of theminFilterfield.VkSamplerCreateInfominFilter(int value)Sets the specified value to theminFilterfield.floatminLod()Returns the value of theminLodfield.VkSamplerCreateInfominLod(float value)Sets the specified value to theminLodfield.floatmipLodBias()Returns the value of themipLodBiasfield.VkSamplerCreateInfomipLodBias(float value)Sets the specified value to themipLodBiasfield.intmipmapMode()Returns the value of themipmapModefield.VkSamplerCreateInfomipmapMode(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()Returns the value of thepNextfield.VkSamplerCreateInfopNext(long value)Sets the specified value to thepNextfield.VkSamplerCreateInfoset(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.VkSamplerCreateInfoset(VkSamplerCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkSamplerCreateInfosType(int value)Sets the specified value to thesTypefield.booleanunnormalizedCoordinates()Returns the value of theunnormalizedCoordinatesfield.VkSamplerCreateInfounnormalizedCoordinates(boolean value)Sets the specified value to theunnormalizedCoordinatesfield.
-
-
-
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 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
magFilter
public int magFilter()
Returns the value of themagFilterfield.
-
minFilter
public int minFilter()
Returns the value of theminFilterfield.
-
mipmapMode
public int mipmapMode()
Returns the value of themipmapModefield.
-
addressModeU
public int addressModeU()
Returns the value of theaddressModeUfield.
-
addressModeV
public int addressModeV()
Returns the value of theaddressModeVfield.
-
addressModeW
public int addressModeW()
Returns the value of theaddressModeWfield.
-
mipLodBias
public float mipLodBias()
Returns the value of themipLodBiasfield.
-
anisotropyEnable
public boolean anisotropyEnable()
Returns the value of theanisotropyEnablefield.
-
maxAnisotropy
public float maxAnisotropy()
Returns the value of themaxAnisotropyfield.
-
compareEnable
public boolean compareEnable()
Returns the value of thecompareEnablefield.
-
compareOp
public int compareOp()
Returns the value of thecompareOpfield.
-
minLod
public float minLod()
Returns the value of theminLodfield.
-
maxLod
public float maxLod()
Returns the value of themaxLodfield.
-
borderColor
public int borderColor()
Returns the value of theborderColorfield.
-
unnormalizedCoordinates
public boolean unnormalizedCoordinates()
Returns the value of theunnormalizedCoordinatesfield.
-
sType
public VkSamplerCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSamplerCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkSamplerCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
magFilter
public VkSamplerCreateInfo magFilter(int value)
Sets the specified value to themagFilterfield.
-
minFilter
public VkSamplerCreateInfo minFilter(int value)
Sets the specified value to theminFilterfield.
-
mipmapMode
public VkSamplerCreateInfo mipmapMode(int value)
Sets the specified value to themipmapModefield.
-
addressModeU
public VkSamplerCreateInfo addressModeU(int value)
Sets the specified value to theaddressModeUfield.
-
addressModeV
public VkSamplerCreateInfo addressModeV(int value)
Sets the specified value to theaddressModeVfield.
-
addressModeW
public VkSamplerCreateInfo addressModeW(int value)
Sets the specified value to theaddressModeWfield.
-
mipLodBias
public VkSamplerCreateInfo mipLodBias(float value)
Sets the specified value to themipLodBiasfield.
-
anisotropyEnable
public VkSamplerCreateInfo anisotropyEnable(boolean value)
Sets the specified value to theanisotropyEnablefield.
-
maxAnisotropy
public VkSamplerCreateInfo maxAnisotropy(float value)
Sets the specified value to themaxAnisotropyfield.
-
compareEnable
public VkSamplerCreateInfo compareEnable(boolean value)
Sets the specified value to thecompareEnablefield.
-
compareOp
public VkSamplerCreateInfo compareOp(int value)
Sets the specified value to thecompareOpfield.
-
minLod
public VkSamplerCreateInfo minLod(float value)
Sets the specified value to theminLodfield.
-
maxLod
public VkSamplerCreateInfo maxLod(float value)
Sets the specified value to themaxLodfield.
-
borderColor
public VkSamplerCreateInfo borderColor(int value)
Sets the specified value to theborderColorfield.
-
unnormalizedCoordinates
public VkSamplerCreateInfo unnormalizedCoordinates(boolean value)
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
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 newVkSamplerCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerCreateInfo calloc()
Returns a newVkSamplerCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerCreateInfo create()
Returns a newVkSamplerCreateInfoinstance allocated withBufferUtils.
-
create
public static VkSamplerCreateInfo create(long address)
Returns a newVkSamplerCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerCreateInfo createSafe(long address)
-
malloc
public static VkSamplerCreateInfo.Buffer malloc(int capacity)
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerCreateInfo.Buffer calloc(int capacity)
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerCreateInfo.Buffer create(int capacity)
Returns a newVkSamplerCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerCreateInfo.Buffer create(long address, int capacity)
Create aVkSamplerCreateInfo.Bufferinstance 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 newVkSamplerCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSamplerCreateInfo callocStack()
Returns a newVkSamplerCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSamplerCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSamplerCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSamplerCreateInfo.Buffer callocStack(int capacity)
Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-