mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 11:38:00 -05:00
glsl: Fix <32-bit SSBO writes
and more cleanup
This commit is contained in:
@ -11,11 +11,8 @@
|
||||
|
||||
namespace Shader::Backend::GLSL {
|
||||
namespace {
|
||||
constexpr const char cas_loop[]{R"(for (;;){{
|
||||
uint old_value={};
|
||||
{}=atomicCompSwap({},old_value,{}({},{}));
|
||||
if ({}==old_value){{break;}}
|
||||
}})"};
|
||||
constexpr char cas_loop[]{
|
||||
"for (;;){{uint old={};{}=atomicCompSwap({},old,{}({},{}));if({}==old){{break;}}}}"};
|
||||
|
||||
void SharedCasFunction(EmitContext& ctx, IR::Inst& inst, std::string_view offset,
|
||||
std::string_view value, std::string_view function) {
|
||||
|
Reference in New Issue
Block a user