Shader: Replace indices-based option keys by CRC32
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Nz
|
||||
|
||||
static constexpr std::size_t InvalidIndex = std::numeric_limits<std::size_t>::max();
|
||||
|
||||
static inline void BuildOption(std::vector<Option>& options, const std::vector<std::shared_ptr<UberShader>>& uberShaders, std::string optionName, const std::string& shaderOptionName);
|
||||
static inline void BuildOption(std::vector<Option>& options, std::string optionName, const std::string& shaderOptionName);
|
||||
|
||||
struct Builder
|
||||
{
|
||||
@@ -74,7 +74,7 @@ namespace Nz
|
||||
struct Option
|
||||
{
|
||||
std::string name;
|
||||
std::vector<std::optional<std::size_t>> optionIndexByShader;
|
||||
UInt32 hash;
|
||||
};
|
||||
|
||||
struct UniformVariable
|
||||
|
||||
Reference in New Issue
Block a user