mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 16:45:47 +00:00
glasm: Use ARB_derivative_control conditionally
This commit is contained in:
parent
4a2361a1e2
commit
79f2fe1a39
6 changed files with 37 additions and 7 deletions
|
@ -265,9 +265,7 @@ void SetupOptions(const IR::Program& program, const Profile& profile,
|
|||
// TODO: Track the shared atomic ops
|
||||
header += "OPTION NV_internal;"
|
||||
"OPTION NV_shader_storage_buffer;"
|
||||
"OPTION NV_gpu_program_fp64;"
|
||||
"OPTION NV_bindless_texture;"
|
||||
"OPTION ARB_derivative_control;";
|
||||
"OPTION NV_gpu_program_fp64;";
|
||||
if (info.uses_int64_bit_atomics) {
|
||||
header += "OPTION NV_shader_atomic_int64;";
|
||||
}
|
||||
|
@ -295,6 +293,9 @@ void SetupOptions(const IR::Program& program, const Profile& profile,
|
|||
if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) {
|
||||
header += "OPTION EXT_shader_image_load_formatted;";
|
||||
}
|
||||
if (profile.support_derivative_control) {
|
||||
header += "OPTION ARB_derivative_control;";
|
||||
}
|
||||
if (stage == Stage::Fragment && runtime_info.force_early_z != 0) {
|
||||
header += "OPTION NV_early_fragment_tests;";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue