MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / GetComputeDevice

Method GetComputeDevice

Apps/08-ConsoleCompute/ConsoleComputeApp.cpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87const rhi::Device* ConsoleComputeApp::GetComputeDevice() const
88{
89 META_FUNCTION_TASK();
90 const int compute_device_index = GetComputeDeviceIndex();
91 const rhi::Devices& devices = GetComputeDevices();
92 return compute_device_index < static_cast<int>(devices.size()) ? &devices[compute_device_index] : nullptr;
93}
94
95int ConsoleComputeApp::Run()
96{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected