GPU: Shader Create Info GLSL-C++ stubs #3

Closed
Clément Foucault wants to merge 90 commits from create-info-cpp-macros into glsl-include

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 152852e877 - Show all commits

View File

@ -29,7 +29,13 @@
*/ */
#ifdef GLSL_CPP_STUBS #ifdef GLSL_CPP_STUBS
/* Do nothing. */ # pragma once
using bool32_t = bool;
/** Packed types are needed for MSL which have different alignment rules for float3. */
using packed_float3 = float3;
using packed_int3 = int3;
using packed_uint3 = uint3;
#elif defined(GPU_SHADER) #elif defined(GPU_SHADER)
/* Silence macros when compiling for shaders. */ /* Silence macros when compiling for shaders. */
# define BLI_STATIC_ASSERT(cond, msg) # define BLI_STATIC_ASSERT(cond, msg)