early-access version 2007

This commit is contained in:
pineappleEA
2021-08-21 22:39:45 +02:00
parent 26b17a7d5c
commit ea5c54a1d3
7 changed files with 15 additions and 6 deletions

View File

@@ -178,11 +178,13 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
Optimization::ConstantPropagationPass(program);
Optimization::DeadCodeEliminationPass(program);
Optimization::GetAttributeReorderPass(program);
Optimization::CollectShaderInfoPass(env, program);
if (program.info.uses_demote_to_helper_invocation) {
Optimization::GetAttributeReorderPass(program);
}
if (Settings::values.renderer_debug) {
Optimization::VerificationPass(program);
}
Optimization::CollectShaderInfoPass(env, program);
CollectInterpolationInfo(env, program);
AddNVNStorageBuffers(program);
return program;

View File

@@ -11,8 +11,9 @@ namespace Shader {
/// Misc information about the host
struct HostTranslateInfo {
bool support_float16{}; ///< True when the device supports 16-bit floats
bool support_int64{}; ///< True when the device supports 64-bit integers
bool support_float16{}; ///< True when the device supports 16-bit floats
bool support_int64{}; ///< True when the device supports 64-bit integers
bool needs_get_attribute_reorder{}; ///< True when the device needs GetAttribute reordered
};
} // namespace Shader