diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpu.c | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -27,20 +27,21 @@ #define SPIRV_ENTRY_POINT "main" -SDL_GPUDevice *ta_gpu_device; -SDL_GPUGraphicsPipeline *ta_gpu_text_pipeline; -SDL_GPUTexture *ta_gpu_text_texture; -SDL_GPUSampler *ta_gpu_text_sampler; -Uint32 ta_gpu_text_texture_width; -Uint32 ta_gpu_text_texture_height; -static SDL_GPUTexture *ta_gpu_msaa_texture; -static SDL_GPUTexture *ta_gpu_depth_texture; -SDL_GPUSampleCount ta_gpu_sample_count = SDL_GPU_SAMPLECOUNT_8; -SDL_GPUTextureFormat ta_gpu_swapchain_format; -static Uint32 ta_gpu_msaa_texture_width; -static Uint32 ta_gpu_msaa_texture_height; -static SDL_GPUCommandBuffer *ta_gpu_command_buffer; -static SDL_GPUTexture *ta_gpu_swapchain_texture; +// NOTE: Does this formatting look good? + SDL_GPUDevice *ta_gpu_device; + SDL_GPUGraphicsPipeline *ta_gpu_text_pipeline; + SDL_GPUTexture *ta_gpu_text_texture; + SDL_GPUSampler *ta_gpu_text_sampler; + Uint32 ta_gpu_text_texture_width; + Uint32 ta_gpu_text_texture_height; +static SDL_GPUTexture *ta_gpu_msaa_texture; +static SDL_GPUTexture *ta_gpu_depth_texture; + SDL_GPUSampleCount ta_gpu_sample_count = SDL_GPU_SAMPLECOUNT_8; + SDL_GPUTextureFormat ta_gpu_swapchain_format; +static Uint32 ta_gpu_msaa_texture_width; +static Uint32 ta_gpu_msaa_texture_height; +static SDL_GPUCommandBuffer *ta_gpu_command_buffer; +static SDL_GPUTexture *ta_gpu_swapchain_texture; static void ta_gpu_resize_msaa_texture(SDL_GPUTextureFormat format) { if (ta_gpu_msaa_texture_width == (Uint32)ta_window_width && |