28 #include <ht_material.h> 29 #include <ht_material_base.h> 30 #include <ht_vkrenderpass.h> 31 #include <ht_vkpipeline.h> 32 #include <ht_vktexture.h> 33 #include <ht_material_resource.h> 34 #include <ht_refcounted.h> 49 bool Initialize(Resource::MaterialHandle handle,
const VkDevice& device,
const VkDescriptorPool& descriptorPool);
51 bool VBindTexture(std::string name,
TextureHandle texture)
override;
52 bool VUnbindTexture(std::string name,
TextureHandle texture)
override;
54 bool VUpdate()
override;
56 const void BindMaterial(
const VkCommandBuffer& commandBuffer,
const VkPipelineLayout& pipelineLayout)
const;
62 const VkDevice* m_device;
63 const VkDescriptorPool* m_descriptorPool;
65 bool setupDescriptorSet();
70 std::vector<VkDescriptorSetLayout> m_descriptorSetLayouts;
71 std::vector<VkDescriptorSetLayout> m_materialLayouts;
72 std::vector<VkDescriptorSet> m_materialSets;
74 std::map<std::string, Graphics::TextureHandle> m_textureHandles;
76 UniformBlock_vk m_uniformVSBuffer;
78 std::vector<UniformBlock_vk> m_fragmentTextures;
80 std::vector<LayoutLocation> m_textureLocations;
81 std::vector<VKTexture*> m_textures;
Definition: ht_vkpipeline.h:42
Definition: ht_material_base.h:51
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_vkmaterial.h:42