MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / ShaderSource

Class ShaderSource

framework/core/shader_module.h:138–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136};
137
138class ShaderSource
139{
140 public:
141 ShaderSource() = default;
142
143 ShaderSource(const std::string &filename);
144
145 size_t get_id() const;
146
147 const std::string &get_filename() const;
148
149 void set_source(const std::string &source);
150
151 const std::string &get_source() const;
152
153 private:
154 size_t id;
155
156 std::string filename;
157
158 std::string source;
159};
160
161/**
162 * @brief Contains shader code, with an entry point, for a specific shader stage.

Callers 2

prepareMethod · 0.85
prepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected