Aether3D Game Engine
Public Member Functions | List of all members
ae3d::ComputeShader Class Reference

Shader program containing a compute shader. More...

#include <ComputeShader.hpp>

Public Member Functions

void Dispatch (unsigned groupCountX, unsigned groupCountY, unsigned groupCountZ)
 
void Load (const char *source)
 
void Load (const char *metalShaderName, const FileSystem::FileContentsData &dataHLSL, const FileSystem::FileContentsData &dataSPIRV)
 

Detailed Description

Shader program containing a compute shader.

Member Function Documentation

void ae3d::ComputeShader::Dispatch ( unsigned  groupCountX,
unsigned  groupCountY,
unsigned  groupCountZ 
)

Dispatches the shader.

Parameters
groupCountXX count
groupCountYY count
groupCountZZ count
void ae3d::ComputeShader::Load ( const char *  source)

Internal loading method. End-users should use the method that takes all languages as parameters.

Parameters
sourceSource string.
void ae3d::ComputeShader::Load ( const char *  metalShaderName,
const FileSystem::FileContentsData dataHLSL,
const FileSystem::FileContentsData dataSPIRV 
)
Parameters
metalShaderNameVertex shader name for Metal renderer. Must be referenced by the application's Xcode project.
dataHLSLHLSL shader file contents.
dataSPIRVSPIR-V vertex file contents.

The documentation for this class was generated from the following file: