mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
glsl: Fix program linking and cbuf
This commit is contained in:
parent
3355c467e0
commit
690e6a79c7
2 changed files with 5 additions and 3 deletions
|
@ -29,8 +29,8 @@ void EmitContext::DefineConstantBuffers() {
|
|||
}
|
||||
u32 binding{};
|
||||
for (const auto& desc : info.constant_buffer_descriptors) {
|
||||
Add("layout(std140,binding={}) uniform cbuf_{}{{uint cbuf{}[];}};", binding, binding,
|
||||
desc.index, desc.count);
|
||||
Add("layout(std140,binding={}) uniform cbuf_{}{{vec4 cbuf{}[{}];}};", binding, binding,
|
||||
desc.index, 4 * 1024);
|
||||
++binding;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue