mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[amdgpu] shader: fix struct pointer searching
This commit is contained in:
parent
627eabec6d
commit
4a5faf3252
|
|
@ -44,12 +44,13 @@ spirv::PointerType
|
|||
ConverterContext::getStructPointerType(spv::StorageClass storageClass,
|
||||
spirv::StructType structType) {
|
||||
StructTypeEntry *entry = nullptr;
|
||||
for (auto &structType : mStructTypes) {
|
||||
if (structType.id != structType.id) {
|
||||
for (auto &type : mStructTypes) {
|
||||
if (type.id != structType) {
|
||||
continue;
|
||||
}
|
||||
|
||||
entry = &structType;
|
||||
entry = &type;
|
||||
break;
|
||||
}
|
||||
|
||||
if (entry == nullptr) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue