11/*
2- * Copyright 2019-2023 Diligent Graphics LLC
2+ * Copyright 2019-2025 Diligent Graphics LLC
33 * Copyright 2015-2019 Egor Yusov
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -45,6 +45,7 @@ static DILIGENT_CONSTEXPR INTERFACE_ID IID_Sampler =
4545// / Sampler flags
4646DILIGENT_TYPED_ENUM (SAMPLER_FLAGS, Uint8)
4747{
48+ // / No flags are set.
4849 SAMPLER_FLAG_NONE = 0 ,
4950
5051 // / Specifies that the sampler will read from a subsampled texture created with MISC_TEXTURE_FLAG_SUBSAMPLED flag.
@@ -69,22 +70,25 @@ DEFINE_FLAG_ENUM_OPERATORS(SAMPLER_FLAGS)
6970// / To create an anisotropic filter, all three filters must either be Diligent::FILTER_TYPE_ANISOTROPIC
7071// / or Diligent::FILTER_TYPE_COMPARISON_ANISOTROPIC.
7172// /
72- // / MipFilter cannot be comparison filter except for Diligent::FILTER_TYPE_ANISOTROPIC if all
73+ // / ` MipFilter` cannot be comparison filter except for Diligent::FILTER_TYPE_ANISOTROPIC if all
7374// / three filters have that value.
7475// /
75- // / Both MinFilter and MagFilter must either be regular filters or comparison filters.
76+ // / Both ` MinFilter` and ` MagFilter` must either be regular filters or comparison filters.
7677// / Mixing comparison and regular filters is an error.
7778struct SamplerDesc DILIGENT_DERIVE(DeviceObjectAttribs)
7879
7980 // / Texture minification filter, see Diligent::FILTER_TYPE for details.
81+
8082 // / Default value: Diligent::FILTER_TYPE_LINEAR.
8183 FILTER_TYPE MinFilter DEFAULT_INITIALIZER(FILTER_TYPE_LINEAR);
8284
8385 // / Texture magnification filter, see Diligent::FILTER_TYPE for details.
86+
8487 // / Default value: Diligent::FILTER_TYPE_LINEAR.
8588 FILTER_TYPE MagFilter DEFAULT_INITIALIZER (FILTER_TYPE_LINEAR);
8689
8790 // / Mip filter, see Diligent::FILTER_TYPE for details.
91+
8892 // / Only FILTER_TYPE_POINT, FILTER_TYPE_LINEAR, FILTER_TYPE_ANISOTROPIC, and
8993 // / FILTER_TYPE_COMPARISON_ANISOTROPIC are allowed.
9094 // / Default value: Diligent::FILTER_TYPE_LINEAR.
@@ -95,49 +99,60 @@ struct SamplerDesc DILIGENT_DERIVE(DeviceObjectAttribs)
9599 TEXTURE_ADDRESS_MODE AddressU DEFAULT_INITIALIZER (TEXTURE_ADDRESS_CLAMP);
96100
97101 // / Texture address mode for V coordinate, see Diligent::TEXTURE_ADDRESS_MODE for details
102+
98103 // / Default value: Diligent::TEXTURE_ADDRESS_CLAMP.
99104 TEXTURE_ADDRESS_MODE AddressV DEFAULT_INITIALIZER (TEXTURE_ADDRESS_CLAMP);
100105
101106 // / Texture address mode for W coordinate, see Diligent::TEXTURE_ADDRESS_MODE for details
107+
102108 // / Default value: Diligent::TEXTURE_ADDRESS_CLAMP.
103109 TEXTURE_ADDRESS_MODE AddressW DEFAULT_INITIALIZER (TEXTURE_ADDRESS_CLAMP);
104110
105111 // / Sampler flags, see Diligent::SAMPLER_FLAGS for details.
106112 SAMPLER_FLAGS Flags DEFAULT_INITIALIZER (SAMPLER_FLAG_NONE);
107113
108114 // / Indicates whether to use unnormalized texture coordinates.
115+
116+ // / When set to `True`, the range of the image coordinates used to lookup
117+ // / the texel is in the range of 0 to the image size in each dimension.
118+ // / When set to `False`, the range of image coordinates is 0.0 to 1.0.
109119 // /
110- // / \remarks When set to True, the range of the image coordinates used to lookup
111- // / the texel is in the range of 0 to the image size in each dimension.
112- // / When set to False, the range of image coordinates is 0.0 to 1.0.
113- // /
114- // / Unnormalized coordinates are only supported in Vulkan and Metal.
120+ // / Unnormalized coordinates are only supported in Vulkan and Metal.
115121 Bool UnnormalizedCoords DEFAULT_INITIALIZER (False);
116122
117- // / Offset from the calculated mipmap level. For example, if a sampler calculates that a texture
118- // / should be sampled at mipmap level 1.2 and MipLODBias is 2.3, then the texture will be sampled at
119- // / mipmap level 3.5. Default value: 0.
123+ // / Offset from the calculated mipmap level.
124+
125+ // / For example, if a sampler calculates that a texture should be sampled at mipmap
126+ // / level 1.2 and MipLODBias is 2.3, then the texture will be sampled at
127+ // / mipmap level 3.5.
128+ // /
129+ // / Default value: 0.
120130 Float32 MipLODBias DEFAULT_INITIALIZER (0 );
121131
122132 // / Maximum anisotropy level for the anisotropic filter. Default value: 0.
123133 Uint32 MaxAnisotropy DEFAULT_INITIALIZER (0 );
124134
125- // / A function that compares sampled data against existing sampled data when comparison
126- // / filter is used. Default value: Diligent::COMPARISON_FUNC_NEVER.
135+ // / A function that compares sampled data against existing sampled data when comparison filter is used.
136+
137+ // / Default value: Diligent::COMPARISON_FUNC_NEVER.
127138 COMPARISON_FUNCTION ComparisonFunc DEFAULT_INITIALIZER (COMPARISON_FUNC_NEVER);
128139
129- // / Border color to use if TEXTURE_ADDRESS_BORDER is specified for AddressU, AddressV, or AddressW.
130- // / Default value: {0,0,0,0}
140+ // / Border color to use if TEXTURE_ADDRESS_BORDER is specified for `AddressU`, `AddressV`, or `AddressW`.
141+
142+ // / Default value: `{0, 0, 0, 0}`
131143 Float32 BorderColor[4 ] DEFAULT_INITIALIZER({});
132144
133145 // / Specifies the minimum value that LOD is clamped to before accessing the texture MIP levels.
134- // / Must be less than or equal to MaxLOD.
146+
147+ // / Must be less than or equal to `MaxLOD`.
148+ // /
135149 // / Default value: 0.
136150 float MinLOD DEFAULT_INITIALIZER (0 );
137151
138152 // / Specifies the maximum value that LOD is clamped to before accessing the texture MIP levels.
139- // / Must be greater than or equal to MinLOD.
140- // / Default value: +FLT_MAX.
153+
154+ // / Must be greater than or equal to `MinLOD`.
155+ // / Default value: `+FLT_MAX`.
141156 float MaxLOD DEFAULT_INITIALIZER (+3 .402823466e+38F );
142157
143158 //
0 commit comments