VkSamplerCreateInfo | NVK Search
  1. No Results
Categories
VkSamplerCreateInfo Structure specifying parameters of a newly created sampler Syntax
samplerInfo = VkSamplerCreateInfo();
samplerInfo = new VkSamplerCreateInfo();
samplerInfo = new VkSamplerCreateInfo(object);
Stub Parameters object When instantiated with an object, members can be filled directly. Properties VkSamplerCreateInfo.prototype.sType VkStructureType is the type of this structure. VkSamplerCreateInfo.prototype.pNext null is null or a reference to an extension-specific structure. VkSamplerCreateInfo.prototype.flags VkSamplerCreateFlagBits is a bitmask of VkSamplerCreateFlagBits describing additional parameters of the sampler. VkSamplerCreateInfo.prototype.magFilter VkFilter is a VkFilter value specifying the magnification filter to apply to lookups. VkSamplerCreateInfo.prototype.minFilter VkFilter is a VkFilter value specifying the minification filter to apply to lookups. VkSamplerCreateInfo.prototype.mipmapMode VkSamplerMipmapMode is a VkSamplerMipmapMode value specifying the mipmap filter to apply to lookups. VkSamplerCreateInfo.prototype.addressModeU VkSamplerAddressMode is a VkSamplerAddressMode value specifying the addressing mode for outside [0..1] range for U coordinate. VkSamplerCreateInfo.prototype.addressModeV VkSamplerAddressMode is a VkSamplerAddressMode value specifying the addressing mode for outside [0..1] range for V coordinate. VkSamplerCreateInfo.prototype.addressModeW VkSamplerAddressMode is a VkSamplerAddressMode value specifying the addressing mode for outside [0..1] range for W coordinate. VkSamplerCreateInfo.prototype.mipLodBias Number is 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 <> section. VkSamplerCreateInfo.prototype.anisotropyEnable Boolean VkSamplerCreateInfo.prototype.maxAnisotropy Number is the anisotropy value clamp used by the sampler when anisotropyEnable is VK_TRUE. If anisotropyEnable is VK_FALSE, maxAnisotropy is ignored. VkSamplerCreateInfo.prototype.compareEnable Boolean VkSamplerCreateInfo.prototype.compareOp VkCompareOp is a VkCompareOp value specifying the comparison function to apply to fetched data before filtering as described in the <> section. VkSamplerCreateInfo.prototype.minLod Number VkSamplerCreateInfo.prototype.maxLod Number are the values used to clamp the computed LOD value, as described in the <> section. VkSamplerCreateInfo.prototype.borderColor VkBorderColor is a VkBorderColor value specifying the predefined border color to use. VkSamplerCreateInfo.prototype.unnormalizedCoordinates Boolean controls whether to use unnormalized or normalized texel coordinates to address texels of the image. When set to VK_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 VK_FALSE the range of image coordinates is zero to one.+When unnormalizedCoordinates is VK_TRUE, images the sampler isused with in the shader have the following requirements:+ Default Properties VkSamplerCreateInfo.prototype.memoryBuffer ArrayBuffer Native memory reference of the structure. VkSamplerCreateInfo.memoryLayout Object Object describing the structure's memory layout. VkSamplerCreateInfo.byteLength Number Total native byte length of the structure. Internal Properties These properties are mainly used by nvk internally. VkSamplerCreateInfo.reset Resets the native memory of the structure. VkSamplerCreateInfo.flush Writes the structure's data into the native memory. VkSamplerCreateInfo.reflect Synchronizes the structure's data with the native memory.