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.Note
For historical reasons, if
maxSamplerAllocationCountis exceeded, some implementations may returnERROR_TOO_MANY_OBJECTS. Exceeding this limit will result in undefined behavior, and an application should not rely on the use of the returned error code in order to identify when the limit is reached.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 - If the
VK_KHR_portability_subsetextension is enabled, andVkPhysicalDevicePortabilitySubsetFeaturesKHR::samplerMipLodBiasisFALSE,mipLodBiasmust be zero 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 the potential format features of the sampler Y′CBCR conversion do not support
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT,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_AVERAGEif sampler Y′CBCR conversion is enabled - If samplerMirrorClampToEdge is not enabled, and 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 ofVkSamplerReductionModeCreateInfomust beSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE - 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 - If
borderColoris one ofBORDER_COLOR_FLOAT_CUSTOM_EXTorBORDER_COLOR_INT_CUSTOM_EXT, then aVkSamplerCustomBorderColorCreateInfoEXTmust be included in thepNextchain - If the
customBorderColorsfeature is not enabled,borderColormust not beBORDER_COLOR_FLOAT_CUSTOM_EXTorBORDER_COLOR_INT_CUSTOM_EXT - If
borderColoris one ofBORDER_COLOR_FLOAT_CUSTOM_EXTorBORDER_COLOR_INT_CUSTOM_EXT, andVkSamplerCustomBorderColorCreateInfoEXT::formatis notFORMAT_UNDEFINED,VkSamplerCustomBorderColorCreateInfoEXT::customBorderColormust be within the range of values representable informat - The maximum number of samplers with custom border colors which can be simultaneously created on a device is implementation-dependent and specified by the maxCustomBorderColorSamplers member of the
VkPhysicalDeviceCustomBorderColorPropertiesEXTstructure
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 ofVkSamplerBorderColorComponentMappingCreateInfoEXT,VkSamplerCustomBorderColorCreateInfoEXT,VkSamplerReductionModeCreateInfo, orVkSamplerYcbcrConversionInfo - The
sTypevalue of each struct 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
Layout
struct VkSamplerCreateInfo { VkStructureTypesType(); void const *pNext(); VkSamplerCreateFlagsflags(); VkFiltermagFilter(); VkFilterminFilter(); VkSamplerMipmapModemipmapMode(); VkSamplerAddressModeaddressModeU(); VkSamplerAddressModeaddressModeV(); VkSamplerAddressModeaddressModeW(); floatmipLodBias(); VkBool32anisotropyEnable(); floatmaxAnisotropy(); VkBool32compareEnable(); VkCompareOpcompareOp(); floatminLod(); floatmaxLod(); VkBorderColorborderColor(); VkBool32unnormalizedCoordinates(); }
-
-
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 Deprecated Methods Modifier and Type Method Description intaddressModeU()aVkSamplerAddressModevalue specifying the addressing mode for U coordinates outside[0,1).VkSamplerCreateInfoaddressModeU(int value)Sets the specified value to theaddressModeU()field.intaddressModeV()aVkSamplerAddressModevalue specifying the addressing mode for V coordinates outside[0,1).VkSamplerCreateInfoaddressModeV(int value)Sets the specified value to theaddressModeV()field.intaddressModeW()aVkSamplerAddressModevalue specifying the addressing mode for W coordinates outside[0,1).VkSamplerCreateInfoaddressModeW(int value)Sets the specified value to theaddressModeW()field.booleananisotropyEnable()TRUEto enable anisotropic filtering, as described in the Texel Anisotropic Filtering section, orFALSEotherwise.VkSamplerCreateInfoanisotropyEnable(boolean value)Sets the specified value to theanisotropyEnable()field.intborderColor()aVkBorderColorvalue specifying the predefined border color to use.VkSamplerCreateInfoborderColor(int value)Sets the specified value to theborderColor()field.static VkSamplerCreateInfocalloc()Returns a newVkSamplerCreateInfoinstance allocated withmemCalloc.static VkSamplerCreateInfo.Buffercalloc(int capacity)Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemCalloc.static VkSamplerCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerCreateInfocallocStack()Deprecated.static VkSamplerCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkSamplerCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSamplerCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.booleancompareEnable()VkSamplerCreateInfocompareEnable(boolean value)Sets the specified value to thecompareEnable()field.intcompareOp()aVkCompareOpvalue specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.VkSamplerCreateInfocompareOp(int value)Sets the specified value to thecompareOp()field.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()a bitmask ofVkSamplerCreateFlagBitsdescribing additional parameters of the sampler.VkSamplerCreateInfoflags(int value)Sets the specified value to theflags()field.intmagFilter()aVkFiltervalue specifying the magnification filter to apply to lookups.VkSamplerCreateInfomagFilter(int value)Sets the specified value to themagFilter()field.static VkSamplerCreateInfomalloc()Returns a newVkSamplerCreateInfoinstance allocated withmemAlloc.static VkSamplerCreateInfo.Buffermalloc(int capacity)Returns a newVkSamplerCreateInfo.Bufferinstance allocated withmemAlloc.static VkSamplerCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.static VkSamplerCreateInfomallocStack()Deprecated.static VkSamplerCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkSamplerCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSamplerCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.floatmaxAnisotropy()the anisotropy value clamp used by the sampler whenanisotropyEnableisTRUE.VkSamplerCreateInfomaxAnisotropy(float value)Sets the specified value to themaxAnisotropy()field.floatmaxLod()used to clamp the maximum of the computed LOD value.VkSamplerCreateInfomaxLod(float value)Sets the specified value to themaxLod()field.intminFilter()aVkFiltervalue specifying the minification filter to apply to lookups.VkSamplerCreateInfominFilter(int value)Sets the specified value to theminFilter()field.floatminLod()used to clamp the minimum of the computed LOD value.VkSamplerCreateInfominLod(float value)Sets the specified value to theminLod()field.floatmipLodBias()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.VkSamplerCreateInfomipLodBias(float value)Sets the specified value to themipLodBias()field.intmipmapMode()aVkSamplerMipmapModevalue specifying the mipmap filter to apply to lookups.VkSamplerCreateInfomipmapMode(int value)Sets the specified value to themipmapMode()field.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()NULLor a pointer to a structure extending this structure.VkSamplerCreateInfopNext(long value)Sets the specified value to thepNext()field.VkSamplerCreateInfopNext(VkSamplerBorderColorComponentMappingCreateInfoEXT value)Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXTvalue to thepNextchain.VkSamplerCreateInfopNext(VkSamplerCustomBorderColorCreateInfoEXT value)Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXTvalue to thepNextchain.VkSamplerCreateInfopNext(VkSamplerReductionModeCreateInfo value)Prepends the specifiedVkSamplerReductionModeCreateInfovalue to thepNextchain.VkSamplerCreateInfopNext(VkSamplerReductionModeCreateInfoEXT value)Prepends the specifiedVkSamplerReductionModeCreateInfoEXTvalue to thepNextchain.VkSamplerCreateInfopNext(VkSamplerYcbcrConversionInfo value)Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain.VkSamplerCreateInfopNext(VkSamplerYcbcrConversionInfoKHR value)Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain.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()the type of this structure.VkSamplerCreateInfosType(int value)Sets the specified value to thesType()field.VkSamplerCreateInfosType$Default()Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFOvalue to thesType()field.booleanunnormalizedCoordinates()controls whether to use unnormalized or normalized texel coordinates to address texels of the image.VkSamplerCreateInfounnormalizedCoordinates(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 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkSamplerCreateFlagBitsdescribing additional parameters of the sampler.
-
magFilter
public int magFilter()
aVkFiltervalue specifying the magnification filter to apply to lookups.
-
minFilter
public int minFilter()
aVkFiltervalue specifying the minification filter to apply to lookups.
-
mipmapMode
public int mipmapMode()
aVkSamplerMipmapModevalue specifying the mipmap filter to apply to lookups.
-
addressModeU
public int addressModeU()
aVkSamplerAddressModevalue specifying the addressing mode for U coordinates outside[0,1).
-
addressModeV
public int addressModeV()
aVkSamplerAddressModevalue specifying the addressing mode for V coordinates outside[0,1).
-
addressModeW
public int addressModeW()
aVkSamplerAddressModevalue specifying the addressing mode for W coordinates outside[0,1).
-
mipLodBias
public float 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
public boolean anisotropyEnable()
TRUEto enable anisotropic filtering, as described in the Texel Anisotropic Filtering section, orFALSEotherwise.
-
maxAnisotropy
public float maxAnisotropy()
-
compareEnable
public boolean compareEnable()
-
compareOp
public int compareOp()
aVkCompareOpvalue specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.
-
minLod
public float minLod()
used to clamp the minimum of the computed LOD value.
-
maxLod
public float maxLod()
used to clamp the maximum of the computed LOD value. To avoid clamping the maximum value, setmaxLodto the constantLOD_CLAMP_NONE.
-
borderColor
public int borderColor()
aVkBorderColorvalue specifying the predefined border color to use.
-
unnormalizedCoordinates
public boolean 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 size in each dimension. 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
-
sType
public VkSamplerCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSamplerCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_SAMPLER_CREATE_INFOvalue to thesType()field.
-
pNext
public VkSamplerCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerBorderColorComponentMappingCreateInfoEXT value)
Prepends the specifiedVkSamplerBorderColorComponentMappingCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerCustomBorderColorCreateInfoEXT value)
Prepends the specifiedVkSamplerCustomBorderColorCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerReductionModeCreateInfo value)
Prepends the specifiedVkSamplerReductionModeCreateInfovalue to thepNextchain.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerReductionModeCreateInfoEXT value)
Prepends the specifiedVkSamplerReductionModeCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerYcbcrConversionInfo value)
Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain.
-
pNext
public VkSamplerCreateInfo pNext(VkSamplerYcbcrConversionInfoKHR value)
Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain.
-
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 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
@Deprecated public static VkSamplerCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSamplerCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSamplerCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSamplerCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSamplerCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSamplerCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSamplerCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSamplerCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkSamplerCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSamplerCreateInfo calloc(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
-
malloc
public static VkSamplerCreateInfo.Buffer malloc(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
-
calloc
public static VkSamplerCreateInfo.Buffer calloc(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.
-
-