1 inline bool Renderer::isInstanceLayerLoaded(
const char* name)
const {
2 auto compareLayers = [&name](
const char* layerName) {
3 return std::strcmp(layerName, name) == 0;
6 return std::find_if(_loadedInstanceLayers.cbegin(), _loadedInstanceLayers.cend(), compareLayers) != _loadedInstanceLayers.cend();
9 inline bool Renderer::isInstanceExtensionLoaded(
const char* name)
const {
10 auto compareExtensions = [&name](
const char* extensionName) {
11 return std::strcmp(extensionName, name) == 0;
14 return std::find_if(_loadedInstanceExtensions.cbegin(), _loadedInstanceExtensions.cend(), compareExtensions) != _loadedInstanceExtensions.cend();
17 inline bool Renderer::isDeviceExtensionLoaded(
const char* name)
const {
18 auto compareExtensions = [&name](
const char* extensionName) {
19 return std::strcmp(extensionName, name) == 0;
22 return std::find_if(_loadedDeviceExtensions.cbegin(), _loadedDeviceExtensions.cend(), compareExtensions) != _loadedDeviceExtensions.cend();
46 return _physicalDeviceInfo;
50 return _physicalDeviceInfo;
53 inline std::vector<PhysicalDeviceInfo>& Renderer::getPhysicalDeviceInfos() {
54 return _physicalDeviceInfos;
57 inline const std::vector<PhysicalDeviceInfo>& Renderer::getPhysicalDeviceInfos()
const {
58 return _physicalDeviceInfos;
70 _pipelines[pipeline->getId()] = pipeline;
74 return _pipelines.find(
id) != _pipelines.end() && _pipelines.at(
id).lock();
78 if (containsPipeline(
id)) {
79 return _pipelines.at(
id).lock();
82 return Render::Pipeline::create(*
this,
id);
Id of the Pipeline. It's a concatenation of three parts: PrimitivePart, MaterialPart and PipelinePart...
Dummy class for a shared pointer.