MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / queryLimits

Function queryLimits

Source/Falcor/Core/API/Device.cpp:335–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335inline Device::Limits queryLimits(gfx::IDevice* pDevice)
336{
337 const auto& deviceLimits = pDevice->getDeviceInfo().limits;
338
339 auto toUint3 = [](const uint32_t value[]) { return uint3(value[0], value[1], value[2]); };
340
341 Device::Limits limits = {};
342 limits.maxComputeDispatchThreadGroups = toUint3(deviceLimits.maxComputeDispatchThreadGroups);
343 limits.maxShaderVisibleSamplers = deviceLimits.maxShaderVisibleSamplers;
344 return limits;
345}
346
347inline Device::SupportedFeatures querySupportedFeatures(gfx::IDevice* pDevice)
348{

Callers 1

DeviceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected