|
group2 0.1.0
CSE 125 Group 2
|
Implementation of shared shader-loading utilities. More...
#include "ShaderUtils.hpp"Functions | |
| SDL_GPUShader * | loadShader (SDL_GPUDevice *dev, const char *path, SDL_GPUShaderFormat format, SDL_GPUShaderStage stage, Uint32 samplerCount, Uint32 uniformBufferCount, Uint32 storageBufferCount, Uint32 storageTextureCount) |
| Load a compiled shader from disk and create an SDL GPU shader object. | |
Implementation of shared shader-loading utilities.
| SDL_GPUShader * loadShader | ( | SDL_GPUDevice * | dev, |
| const char * | path, | ||
| SDL_GPUShaderFormat | format, | ||
| SDL_GPUShaderStage | stage, | ||
| Uint32 | samplerCount, | ||
| Uint32 | uniformBufferCount, | ||
| Uint32 | storageBufferCount, | ||
| Uint32 | storageTextureCount ) |
Load a compiled shader from disk and create an SDL GPU shader object.
| dev | The GPU device. |
| path | Path to the compiled shader file (.spv or .msl). |
| format | Shader format (SPIR-V or MSL). |
| stage | Vertex or fragment stage. |
| samplerCount | Number of texture samplers declared in the shader. |
| uniformBufferCount | Number of uniform buffers declared in the shader. |
| storageBufferCount | Number of storage buffers declared in the shader. |
| storageTextureCount | Number of storage textures declared in the shader. |