mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
set profile for int8/16/64
This commit is contained in:
parent
efc6262c9e
commit
97f7043330
@ -94,6 +94,21 @@ public:
|
||||
return features.shaderFloat64;
|
||||
}
|
||||
|
||||
/// Returns true if 64-bit ints are supported in shaders
|
||||
bool IsShaderInt64Supported() const {
|
||||
return features.shaderInt64;
|
||||
}
|
||||
|
||||
/// Returns true if 16-bit ints are supported in shaders
|
||||
bool IsShaderInt16Supported() const {
|
||||
return features.shaderInt16;
|
||||
}
|
||||
|
||||
/// Returns true if 8-bit ints are supported in shaders
|
||||
bool IsShaderInt8Supported() const {
|
||||
return vk12_features.shaderInt8;
|
||||
}
|
||||
|
||||
/// Returns true when VK_EXT_custom_border_color is supported
|
||||
bool IsCustomBorderColorSupported() const {
|
||||
return custom_border_color;
|
||||
|
@ -206,6 +206,9 @@ PipelineCache::PipelineCache(const Instance& instance_, Scheduler& scheduler_,
|
||||
profile = Shader::Profile{
|
||||
.supported_spirv = SpirvVersion1_6,
|
||||
.subgroup_size = instance.SubgroupSize(),
|
||||
.support_int8 = instance.IsShaderInt8Supported(),
|
||||
.support_int16 = instance.IsShaderInt16Supported(),
|
||||
.support_int64 = instance.IsShaderInt64Supported(),
|
||||
.support_float64 = instance.IsShaderFloat64Supported(),
|
||||
.support_fp32_denorm_preserve = bool(vk12_props.shaderDenormPreserveFloat32),
|
||||
.support_fp32_denorm_flush = bool(vk12_props.shaderDenormFlushToZeroFloat32),
|
||||
|
Loading…
Reference in New Issue
Block a user