Fix T65212: Cycles SSS failing on 32 bit

This commit is contained in:
Brecht Van Lommel
2019-05-28 11:52:26 +02:00
parent 8e125f278c
commit 4df66dabb8
13 changed files with 34 additions and 3 deletions

View File

@@ -48,6 +48,8 @@ typedef ccl_addr_space struct MicrofacetBsdf {
float3 T;
} MicrofacetBsdf;
static_assert(sizeof(ShaderClosure) >= sizeof(MicrofacetBsdf), "MicrofacetBsdf is too large!");
/* Beckmann and GGX microfacet importance sampling. */
ccl_device_inline void microfacet_beckmann_sample_slopes(KernelGlobals *kg,