The JEForwardShader class.
More...
#include <VulkanShader.h>
|
| | JEForwardShader ()=delete |
| | Default constructor (delete). More...
|
| |
| | JEForwardShader (const MaterialComponent &materialComponent, uint32_t numSourceTextures, uint32_t numUniformBuffers, VkDevice device, VkPhysicalDevice physicalDevice, const JEVulkanSwapChain &swapChain, VkRenderPass renderPass, const std::string &vertPath, const std::string &fragPath) |
| | Constructor. More...
|
| |
| void | BindPushConstants_ViewProj (VkCommandBuffer commandBuffer, const glm::mat4 &viewProj) const |
| | Bind the view-projection matrix push constant. More...
|
| |
| void | BindPushConstants_InstancedData (VkCommandBuffer commandBuffer, const std::array< uint32_t, 4 > &instancedData) const |
| | Bind the instanced data push constant. More...
|
| |
| | JEVulkanShader ()=delete |
| | Default constructor (deleted). More...
|
| |
| | JEVulkanShader (VkDevice device, const std::string &vertPath, const std::string &fragPath) |
| | Constructor. More...
|
| |
| virtual | ~JEVulkanShader ()=default |
| | Destructor (default) (deleted). More...
|
| |
| void | Cleanup () override |
| | Vulkan API-specific cleanup function. More...
|
| |
| virtual void | UpdateUniformBuffers (VkDevice device, uint32_t currentImage) override |
| | Default shader data buffer update function. More...
|
| |
| VkPipeline | GetPipeline () const |
| |
| VkPipelineLayout | GetPipelineLayout () const |
| |
| VkDescriptorSetLayout | GetDescriptorSetLayout (uint32_t index) const |
| | Get descriptor set layout object. More...
|
| |
| | JEShader ()=delete |
| | Delete constructor (deleted). More...
|
| |
| | JEShader (const std::string &vertPath, const std::string &fragPath) |
| | Constructor. More...
|
| |
| virtual | ~JEShader ()=default |
| | Destructor (default) (virtual). More...
|
| |
The JEForwardShader class.
Shader for typical forward shading. Currently used for rendering of translucent objects.
- See also
- JEShader, JEVulkanShader
◆ JEForwardShader() [1/2]
| JoeEngine::JEForwardShader::JEForwardShader |
( |
| ) |
|
|
delete |
Default constructor (delete).
◆ JEForwardShader() [2/2]
| JoeEngine::JEForwardShader::JEForwardShader |
( |
const MaterialComponent & |
materialComponent, |
|
|
uint32_t |
numSourceTextures, |
|
|
uint32_t |
numUniformBuffers, |
|
|
VkDevice |
device, |
|
|
VkPhysicalDevice |
physicalDevice, |
|
|
const JEVulkanSwapChain & |
swapChain, |
|
|
VkRenderPass |
renderPass, |
|
|
const std::string & |
vertPath, |
|
|
const std::string & |
fragPath |
|
) |
| |
|
inline |
◆ BindPushConstants_InstancedData()
| void JoeEngine::JEForwardShader::BindPushConstants_InstancedData |
( |
VkCommandBuffer |
commandBuffer, |
|
|
const std::array< uint32_t, 4 > & |
instancedData |
|
) |
| const |
Bind the instanced data push constant.
- Parameters
-
| commandBuffer | the command buffer to record the bind command to. |
| instancedData | per-geometry-instance data to provide to the shader. |
◆ BindPushConstants_ViewProj()
| void JoeEngine::JEForwardShader::BindPushConstants_ViewProj |
( |
VkCommandBuffer |
commandBuffer, |
|
|
const glm::mat4 & |
viewProj |
|
) |
| const |
Bind the view-projection matrix push constant.
- Parameters
-
| commandBuffer | the command buffer to record the bind command to. |
| viewProj | the view projection matrix to provide to the shader. |
The documentation for this class was generated from the following files: