namespace Brutal.VulkanApi { /// /// VkSamplerCreateInfo - Structure specifying parameters of a newly created sampler /// /// /// /// The VkSamplerCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSamplerCreateInfo { /// VkStructureType sType; /// const void* 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; /// } VkSamplerCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 80)] public unsafe partial struct VkSamplerCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.SamplerCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkSamplerCreateFlags describing additional parameters of the sampler. /// [FieldOffset(16)] public VkSamplerCreateFlags Flags; /// /// MagFilter is a VkFilter value specifying the magnification filter to apply to lookups. /// [FieldOffset(20)] public VkFilter MagFilter; /// /// MinFilter is a VkFilter value specifying the minification filter to apply to lookups. /// [FieldOffset(24)] public VkFilter MinFilter; /// /// MipmapMode is a VkSamplerMipmapMode value specifying the mipmap filter to apply to lookups. /// [FieldOffset(28)] public VkSamplerMipmapMode MipmapMode; /// /// AddressModeU is a VkSamplerAddressMode value specifying the wrapping operation^ used when the i coordinate used to sample the image would be out of bounds. /// [FieldOffset(32)] public VkSamplerAddressMode AddressModeU; /// /// AddressModeV is a VkSamplerAddressMode value specifying the wrapping operation^ used when the j coordinate used to sample the image would be out of bounds. /// [FieldOffset(36)] public VkSamplerAddressMode AddressModeV; /// /// AddressModeW is a VkSamplerAddressMode value specifying the wrapping operation^ used when the k coordinate used to sample the image would be out of bounds. If unnormalizedCoordinates is VK_TRUE, addressModeW is ignored. /// [FieldOffset(40)] public VkSamplerAddressMode AddressModeW; /// /// MipLodBias /// [FieldOffset(44)] public float MipLodBias; /// /// AnisotropyEnable /// [FieldOffset(48)] public Brutal.Bool32 AnisotropyEnable; /// /// MaxAnisotropy is the anisotropy value clamp used by the sampler when anisotropyEnable is VK_TRUE. If anisotropyEnable is VK_FALSE, maxAnisotropy is ignored. /// [FieldOffset(52)] public float MaxAnisotropy; /// /// CompareEnable is VK_TRUE to enable comparison against a reference value during lookups, or VK_FALSE otherwise. /// [FieldOffset(56)] public Brutal.Bool32 CompareEnable; /// /// CompareOp is a VkCompareOp value specifying the comparison operator to apply to fetched data before filtering as described in the Depth Compare Operation^ section. /// [FieldOffset(60)] public VkCompareOp CompareOp; /// /// MinLod is used to clamp the minimum of the computed LOD value^. /// [FieldOffset(64)] public float MinLod; /// /// MaxLod is used to clamp the maximum of the computed LOD value^. To avoid clamping the maximum value, set maxLod to the constant VK_LOD_CLAMP_NONE. /// [FieldOffset(68)] public float MaxLod; /// /// BorderColor is a VkBorderColor value specifying the predefined border color to use. /// [FieldOffset(72)] public VkBorderColor BorderColor; /// /// UnnormalizedCoordinates /// [FieldOffset(76)] public Brutal.Bool32 UnnormalizedCoordinates; } }