MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Init

Method Init

Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp:599–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599bool 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
608bool GlobalSignDistanceFieldPass::setupResources()
609{

Callers 1

setupResourcesMethod · 0.45

Calls 2

EnumHasAllFlagsFunction · 0.85
GetFeatureLevelMethod · 0.45

Tested by

no test coverage detected