diff options
Diffstat (limited to 'src/gpu/mtl/GrMtlCaps.mm')
-rw-r--r-- | src/gpu/mtl/GrMtlCaps.mm | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.mm b/src/gpu/mtl/GrMtlCaps.mm index d431f0a1e1..2354b85e64 100644 --- a/src/gpu/mtl/GrMtlCaps.mm +++ b/src/gpu/mtl/GrMtlCaps.mm @@ -229,21 +229,10 @@ void GrMtlCaps::initShaderCaps() { shaderCaps->fTexelFetchSupport = false; shaderCaps->fVertexIDSupport = false; shaderCaps->fImageLoadStoreSupport = false; - shaderCaps->fShaderPrecisionVaries = false; // ??? - // Metal uses IEEE float and half floats so using those values here. - for (int s = 0; s < kGrShaderTypeCount; ++s) { - auto& highp = shaderCaps->fFloatPrecisions[s][kHigh_GrSLPrecision]; - highp.fLogRangeLow = highp.fLogRangeHigh = 127; - highp.fBits = 23; - - auto& mediump = shaderCaps->fFloatPrecisions[s][kMedium_GrSLPrecision]; - mediump.fLogRangeLow = mediump.fLogRangeHigh = 15; - mediump.fBits = 10; - - shaderCaps->fFloatPrecisions[s][kLow_GrSLPrecision] = mediump; - } - shaderCaps->initSamplerPrecisionTable(); + // Metal uses IEEE float and half floats so assuming those values here. + shaderCaps->fFloatIs32Bits = true; + shaderCaps->fHalfIs32Bits = false; shaderCaps->fMaxVertexSamplers = shaderCaps->fMaxFragmentSamplers = 16; |