1#ifndef INCLUDE_COMMON_COMMON_H_
2#define INCLUDE_COMMON_COMMON_H_
7 #include <tracy/Tracy.hpp>
8 #define PROFILE_SCOPE ZoneScoped
9 #define PROFILE_SCOPE_N(name) ZoneScopedN(name)
10 #define PROFILE_FRAME FrameMark
13 #define PROFILE_SCOPE_N(name)
32SDL_GPUShader *
LoadShader(SDL_GPUDevice *device,
33 const std::string &shaderFilename,
35 Uint32 uniformBufferCount,
36 Uint32 storageBufferCount,
37 Uint32 storageTextureCount);
40SDL_Surface *
LoadImage(
const std::string &imageFileName,
int desiredChannels = 4);
SDL_Surface * LoadImage(const std::string &imageFileName, int desiredChannels)
Definition Common.cpp:101
SDL_GPUShader * 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:36