shaders: Track local memory usage
This commit is contained in:
parent
a2b344ab9d
commit
28cecc6cd8
7 changed files with 23 additions and 2 deletions
|
@ -424,6 +424,10 @@ void VisitUsages(Info& info, IR::Inst& inst) {
|
|||
info.used_constant_buffer_types |= IR::Type::U32 | IR::Type::U32x2;
|
||||
info.used_storage_buffer_types |= IR::Type::U32 | IR::Type::U32x2 | IR::Type::U32x4;
|
||||
break;
|
||||
case IR::Opcode::LoadLocal:
|
||||
case IR::Opcode::WriteLocal:
|
||||
info.uses_local_memory = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -172,6 +172,7 @@ struct Info {
|
|||
bool stores_indexed_attributes{};
|
||||
|
||||
bool stores_global_memory{};
|
||||
bool uses_local_memory{};
|
||||
|
||||
bool uses_fp16{};
|
||||
bool uses_fp64{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue