mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 16:42:23 -07:00
fix incorrect resource kind string table; fix incorrect usage of resource kind table when doing texture format lookups in bitmap view
This commit is contained in:
@@ -30,9 +30,11 @@ U8 r_tex2d_format_bytes_per_pixel_table[9] =
|
||||
16,
|
||||
};
|
||||
|
||||
String8 r_tex2d_kind_display_string_table[1] =
|
||||
String8 r_resource_kind_display_string_table[3] =
|
||||
{
|
||||
str8_lit_comp("$(a.display_string)"),
|
||||
str8_lit_comp("Static"),
|
||||
str8_lit_comp("Dynamic"),
|
||||
str8_lit_comp("Stream "),
|
||||
};
|
||||
|
||||
String8 r_tex2d_sample_kind_display_string_table[2] =
|
||||
|
||||
@@ -55,7 +55,7 @@ R_PassKind_COUNT,
|
||||
C_LINKAGE_BEGIN
|
||||
extern String8 r_tex2d_format_display_string_table[9];
|
||||
extern U8 r_tex2d_format_bytes_per_pixel_table[9];
|
||||
extern String8 r_tex2d_kind_display_string_table[1];
|
||||
extern String8 r_resource_kind_display_string_table[3];
|
||||
extern String8 r_tex2d_sample_kind_display_string_table[2];
|
||||
extern String8 r_pass_kind_display_string_table[3];
|
||||
extern U8 r_pass_kind_batch_table[3];
|
||||
|
||||
@@ -26,12 +26,12 @@ R_ResourceKindTable:
|
||||
// GPU can read the resource
|
||||
// CPU is not allowed to read or write
|
||||
{Static "Static" }
|
||||
|
||||
|
||||
// dynamic resource allows resource to be modified
|
||||
// GPU can read & write to it
|
||||
// CPU can write to it using UpdateSubresource
|
||||
{Dynamic "Dynamic"}
|
||||
|
||||
|
||||
// stream resource will be often updated fully overwriting previous data
|
||||
// GPU can only read it
|
||||
// CPU can update via Map (with WRITE_DISCARD flag) + Unmap
|
||||
@@ -105,9 +105,9 @@ R_PassKindTable:
|
||||
@expand(R_Tex2DFormatTable a) `$(a.bytes_per_pixel)`;
|
||||
}
|
||||
|
||||
@data(String8) r_tex2d_kind_display_string_table:
|
||||
@data(String8) r_resource_kind_display_string_table:
|
||||
{
|
||||
@expand(R_Tex2DKindTable a) `str8_lit_comp("$(a.display_string)")`;
|
||||
@expand(R_ResourceKindTable a) `str8_lit_comp("$(a.display_string)")`;
|
||||
}
|
||||
|
||||
@data(String8) r_tex2d_sample_kind_display_string_table:
|
||||
|
||||
Reference in New Issue
Block a user