Skip to content

LiteFX::Rendering::IShaderProgram::operator[]

Returns a pointer to shader module based on its (case-sensitive) name.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] IShaderModule const* operator[](StringView name) const;

Return Value

A pointer to the shader module, or nullptr, if it was not found.

Parameters

NameDescription
nameThe name or file name of the shader module.