CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
HLSLScanner.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
13
14 // HLSL token scanner.
15 class HLSLScanner : public SLScanner {
16 private:
17 bool mEnableCgKeywords = false;
18
19 public:
20 HLSLScanner(bool enableCgKeywords, Log* log = nullptr);
21
22 private:
24 };
25
26} // namespace CeresEngine::ShaderCompiler
Definition HLSLScanner.hpp:15
HLSLScanner(bool enableCgKeywords, Log *log=nullptr)
TokenPtr scanIdentifierOrKeyword(String &&spell) override
bool mEnableCgKeywords
Definition HLSLScanner.hpp:17
Log base class.
Definition Log.hpp:19
Definition SLScanner.hpp:15
Definition AST.hpp:33
SPtr< Token > TokenPtr
Definition Token.hpp:174
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25