mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx: Replace pointless f32[4] restriction on texture parameters.
- Use a struct instead to improve readability and remove pointless OpBitCast
This commit is contained in:
parent
f7842b765f
commit
901942f24a
4 changed files with 44 additions and 27 deletions
|
|
@ -40,6 +40,8 @@ void VKFragmentDecompilerThread::insertHeader(std::stringstream & OS)
|
|||
}
|
||||
|
||||
OS << "#extension GL_ARB_separate_shader_objects: enable\n\n";
|
||||
|
||||
glsl::insert_subheader_block(OS);
|
||||
}
|
||||
|
||||
void VKFragmentDecompilerThread::insertInputs(std::stringstream & OS)
|
||||
|
|
@ -205,7 +207,7 @@ void VKFragmentDecompilerThread::insertConstants(std::stringstream & OS)
|
|||
|
||||
OS << "layout(std140, set = 0, binding = 4) uniform TextureParametersBuffer\n";
|
||||
OS << "{\n";
|
||||
OS << " vec4 texture_parameters[16];\n";
|
||||
OS << " sampler_info texture_parameters[16];\n";
|
||||
OS << "};\n\n";
|
||||
|
||||
vk::glsl::program_input in;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue