| 597 | } |
| 598 | |
| 599 | bool GlobalSignDistanceFieldPass::Init() |
| 600 | { |
| 601 | // Check platform support |
| 602 | const auto device = GPUDevice::Instance; |
| 603 | _supported = device->GetFeatureLevel() >= FeatureLevel::SM5 && device->Limits.HasCompute && device->Limits.HasTypedUAVLoad |
| 604 | && EnumHasAllFlags(device->GetFormatFeatures(GLOBAL_SDF_FORMAT).Support, FormatSupport::ShaderSample | FormatSupport::Texture3D); |
| 605 | return false; |
| 606 | } |
| 607 | |
| 608 | bool GlobalSignDistanceFieldPass::setupResources() |
| 609 | { |
no test coverage detected