1#ifndef INCLUDE_COMMON_COMMON_H_
2#define INCLUDE_COMMON_COMMON_H_
9 #include <tracy/Tracy.hpp>
10 #define PROFILE_SCOPE ZoneScoped
11 #define PROFILE_SCOPE_N(name) ZoneScopedN(name)
12 #define PROFILE_FRAME FrameMark
15 #define PROFILE_SCOPE_N(name)
34std::expected<SDL_GPUShader *, std::string>
LoadShader(SDL_GPUDevice *device,
35 const std::string &shaderFilename,
37 Uint32 uniformBufferCount,
38 Uint32 storageBufferCount,
39 Uint32 storageTextureCount);
42SDL_Surface *
LoadImage(
const std::string &imageFileName,
int desiredChannels = 4);
SDL_Surface * LoadImage(const std::string &imageFileName, int desiredChannels)
Definition Common.cpp:106
std::expected< SDL_GPUShader *, std::string > LoadShader(SDL_GPUDevice *device, const std::string &shaderFilename, Uint32 samplerCount, Uint32 uniformBufferCount, Uint32 storageBufferCount, Uint32 storageTextureCount)
This is a function that returns a compiled shader after taking the path to shader.
Definition Common.cpp:37