candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
Shader.h File Reference
#include "Core.h"
#include <SDL3/SDL_gpu.h>

Go to the source code of this file.

Classes

struct  candlewick::Shader
 RAII wrapper around SDL_GPUShader, with loading utilities. More...
 
struct  candlewick::Shader::Config
 Shader configuration: number of uniforms, texture samplers, storage textures and storage buffers. More...
 

Namespaces

namespace  candlewick
 

Functions

void candlewick::setShadersDirectory (const char *path)
 Set the current (global) directory where shaders are to be found.
 
const char * candlewick::currentShaderDirectory ()
 Get the current (global) directory where shaders are found.
 
SDL_GPUShaderStage candlewick::detect_shader_stage (const char *filename)
 
const char * candlewick::shader_format_name (SDL_GPUShaderFormat shader_format)
 
Shader::Config candlewick::loadShaderMetadata (const char *shader_name)
 Load shader config from metadata. Metadata filename (in JSON format) is inferred from the shader name.
 

Variables

constexpr const char * candlewick::g_default_shader_dir = CANDLEWICK_SHADER_BIN_DIR