• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2017 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef TOOLS_COMP_MARKV_MODEL_SHADER_H_
16 #define TOOLS_COMP_MARKV_MODEL_SHADER_H_
17 
18 #include "source/comp/markv_model.h"
19 
20 namespace spvtools {
21 namespace comp {
22 
23 // MARK-V shader compression model, which only uses fast and lightweight
24 // algorithms, which do not require training and are not heavily dependent on
25 // SPIR-V grammar. Compression ratio is worse than by other models.
26 class MarkvModelShaderLite : public MarkvModel {
27  public:
28   MarkvModelShaderLite();
29 };
30 
31 // MARK-V shader compression model with balanced compression ratio and runtime
32 // performance.
33 class MarkvModelShaderMid : public MarkvModel {
34  public:
35   MarkvModelShaderMid();
36 };
37 
38 // MARK-V shader compression model designed for maximum compression.
39 class MarkvModelShaderMax : public MarkvModel {
40  public:
41   MarkvModelShaderMax();
42 };
43 
44 }  // namespace comp
45 }  // namespace spvtools
46 
47 #endif  // TOOLS_COMP_MARKV_MODEL_SHADER_H_
48