Minor alteration to clarify that BGFX_DISCARD_STATE also discards uniforms (#2464)

Signed-off-by: Samuel Hellawell <sshellawell@gmail.com>
This commit is contained in:
Sam
2021-04-10 05:51:03 +01:00
committed by GitHub
parent 900afe7644
commit 49fb72842a
5 changed files with 5 additions and 6 deletions

View File

@@ -554,7 +554,7 @@ public static class bgfx
InstanceData = 0x00000004,
/// <summary>
/// Discard state.
/// Discard state and uniform bindings.
/// </summary>
State = 0x00000008,

View File

@@ -553,7 +553,7 @@ public static partial class bgfx
InstanceData = 0x00000004,
/// <summary>
/// Discard state.
/// Discard state and uniform bindings.
/// </summary>
State = 0x00000008,

View File

@@ -197,7 +197,7 @@ enum ubyte BGFX_DISCARD_NONE = 0x00; /// Preserve everything.
enum ubyte BGFX_DISCARD_BINDINGS = 0x01; /// Discard texture sampler and buffer bindings.
enum ubyte BGFX_DISCARD_INDEX_BUFFER = 0x02; /// Discard index buffer.
enum ubyte BGFX_DISCARD_INSTANCE_DATA = 0x04; /// Discard instance data.
enum ubyte BGFX_DISCARD_STATE = 0x08; /// Discard state.
enum ubyte BGFX_DISCARD_STATE = 0x08; /// Discard state and uniform bindings.
enum ubyte BGFX_DISCARD_TRANSFORM = 0x10; /// Discard transform.
enum ubyte BGFX_DISCARD_VERTEX_STREAMS = 0x20; /// Discard vertex streams.
enum ubyte BGFX_DISCARD_ALL = 0xff; /// Discard all states.
@@ -1062,4 +1062,3 @@ struct bgfx_uniform_handle_t { ushort idx; }
struct bgfx_vertex_buffer_handle_t { ushort idx; }
struct bgfx_vertex_layout_handle_t { ushort idx; }