The JEForwardTranslucentShader class.
More...
#include <VulkanShader.h>
|
| JEForwardTranslucentShader ()=delete |
| Default constructor (deleted). More...
|
|
| JEForwardTranslucentShader (const MaterialComponent &materialComponent, uint32_t numSourceTextures, uint32_t numUniformBuffers, VkDevice device, VkPhysicalDevice physicalDevice, const JEVulkanSwapChain &swapChain, VkRenderPass renderPass, bool enableOIT, 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 JEForwardTranslucentShader class.
Shader for rendering translucent meshes, optionally with OIT enabled.
- See also
- JEShader, JEVulkanShader
◆ JEForwardTranslucentShader() [1/2]
JoeEngine::JEForwardTranslucentShader::JEForwardTranslucentShader |
( |
| ) |
|
|
delete |
Default constructor (deleted).
◆ JEForwardTranslucentShader() [2/2]
JoeEngine::JEForwardTranslucentShader::JEForwardTranslucentShader |
( |
const MaterialComponent & |
materialComponent, |
|
|
uint32_t |
numSourceTextures, |
|
|
uint32_t |
numUniformBuffers, |
|
|
VkDevice |
device, |
|
|
VkPhysicalDevice |
physicalDevice, |
|
|
const JEVulkanSwapChain & |
swapChain, |
|
|
VkRenderPass |
renderPass, |
|
|
bool |
enableOIT, |
|
|
const std::string & |
vertPath, |
|
|
const std::string & |
fragPath |
|
) |
| |
|
inline |
◆ BindPushConstants_InstancedData()
void JoeEngine::JEForwardTranslucentShader::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::JEForwardTranslucentShader::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: