HatchitResource
ht_shader_resource.h
1 
15 #include <ht_platform.h>
16 #include <ht_resource.h>
17 #include <ht_debug.h>
18 #include <fstream>
19 
20 #pragma once
21 
22 namespace Hatchit {
23 
24  namespace Resource {
25 
26  class HT_API Shader : public FileResource<Shader>
27  {
28  public:
29  Shader(Core::Guid ID);
30  ~Shader();
31 
32  //Required function for all RefCounted classes
33  bool Initialize(const std::string& fileName);
34 
35  bool VInitFromFile(const std::string& filename);
36 
37  const BYTE* GetBytecode() const;
38  size_t GetBytecodeSize() const;
39 
40  private:
41  BYTE* m_bytecode;
42  size_t m_bytecodeSize;
43  };
44 
45  using ShaderHandle = Core::Handle<const Shader>;
46 
47  }
48 
49 }
Definition: ht_resource.h:35
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_assimp.h:31
Definition: ht_shader_resource.h:26