Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
ComputeShader Class Reference

#include <Shader.h>

Inheritance diagram for ComputeShader:
Collaboration diagram for ComputeShader:

Public Member Functions

 ComputeShader (VkDevice device, const std::filesystem::path &shaderPath)
void destroyShaders (VkDevice device) override
VkShaderModule getComputeShaderModule () const
Public Member Functions inherited from Shader
virtual ~Shader ()=default

Private Attributes

VkShaderModule computeShaderModule = nullptr

Additional Inherited Members

Protected Member Functions inherited from Shader
void destroyShader (VkShaderModule shaderModule, const VkDevice &device)
VkShaderModule createShaderModule (VkDevice device, const std::vector< char > &code)

Detailed Description

Definition at line 19 of file Shader.h.

Constructor & Destructor Documentation

◆ ComputeShader()

ComputeShader::ComputeShader ( VkDevice device,
const std::filesystem::path & shaderPath )

Definition at line 28 of file Shader.cpp.

References computeShaderModule, Shader::createShaderModule(), FileHandler::readFile(), and VulkanHelper::setObjectName().

Here is the call graph for this function:

Member Function Documentation

◆ destroyShaders()

void ComputeShader::destroyShaders ( VkDevice device)
overridevirtual

Reimplemented from Shader.

Definition at line 34 of file Shader.cpp.

References computeShaderModule, Shader::destroyShader(), and Shader::destroyShaders().

Here is the call graph for this function:

◆ getComputeShaderModule()

VkShaderModule ComputeShader::getComputeShaderModule ( ) const
inlinenodiscard

Definition at line 25 of file Shader.h.

References computeShaderModule.

Member Data Documentation

◆ computeShaderModule

VkShaderModule ComputeShader::computeShaderModule = nullptr
private

Definition at line 28 of file Shader.h.

Referenced by ComputeShader(), destroyShaders(), and getComputeShaderModule().


The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Shader/Shader.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/Shader/Shader.cpp