mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Localise addressing mode state display for GL
* On GL addressing modes are called wrap modes, and the wrap value is then known as repeat. If we don't 'localise' this then it can be confusing to show that it is "Wrap".
This commit is contained in:
@@ -424,7 +424,7 @@ rdcstr DoStringise(const TextureFilter &el)
|
||||
if(a == 0 || filters[a] == filters[a - 1])
|
||||
{
|
||||
if(filtPrefix != "")
|
||||
filtPrefix += "/";
|
||||
filtPrefix += "&";
|
||||
filtPrefix += filterPrefixes[a];
|
||||
}
|
||||
else
|
||||
|
||||
@@ -327,15 +327,27 @@ DOCUMENT(R"(A texture addressing mode in a single direction (U,V or W).
|
||||
|
||||
The texture is tiled at every multiple of 1.0.
|
||||
|
||||
.. data:: Repeat
|
||||
|
||||
Alias of :data:`Wrap`.
|
||||
|
||||
.. data:: Mirror
|
||||
|
||||
The texture is tiled as with :data:`Wrap`, but with the absolute value of the texture co-ordinate.
|
||||
|
||||
.. data:: MirrorRepeat
|
||||
|
||||
Alias of :data:`Mirror`.
|
||||
|
||||
.. data:: MirrorOnce
|
||||
|
||||
The texture is mirrored with :data:`Mirror`, but the texture does not tile as with
|
||||
:data:`ClampEdge`.
|
||||
|
||||
.. data:: MirrorClamp
|
||||
|
||||
Alias of :data:`MirrorOnce`.
|
||||
|
||||
.. data:: ClampEdge
|
||||
|
||||
The texture is clamped to the range of ``[0.0, 1.0]`` and the texture value at each end used.
|
||||
@@ -348,8 +360,11 @@ DOCUMENT(R"(A texture addressing mode in a single direction (U,V or W).
|
||||
enum class AddressMode : uint32_t
|
||||
{
|
||||
Wrap,
|
||||
Repeat = Wrap,
|
||||
Mirror,
|
||||
MirrorRepeat = Mirror,
|
||||
MirrorOnce,
|
||||
MirrorClamp = MirrorOnce,
|
||||
ClampEdge,
|
||||
ClampBorder,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user