shader_recompiler: fix fetch_shader when offset is not present

This commit is contained in:
Vinicius Rangel 2024-08-22 22:11:16 -03:00
parent 81f8c642a6
commit 68f042001c
No known key found for this signature in database
GPG key ID: A5B154D904B761D9

View file

@ -45,6 +45,7 @@ std::vector<VertexAttribute> ParseFetchShader(const u32* code, u32* out_size) {
};
boost::container::static_vector<VsharpLoad, 16> loads;
std::array<u32, 16> offsets{};
offsets.fill(0xFF);
u32 semantic_index = 0;
while (!code_slice.atEnd()) {