HLSL What is the pragma to disable warnings ?

Hi !

I want to prevent the pipelinetool from showing warnings about an implicit truncation of vector type for a given shader.

I have tried

#pragma warning( disable : 3206)

But it changes nothing. Anyone ? Thanks.

fix the warnings, they are legit sources of error.

Not helpful I know, unlike these wanings

Is there a fast way to truncate a float4x4 to a float3x3 ? Sort of myfloat4x4.Truncate(3,3) ?

(float3x3)World

Is there a fast way to truncate a float4x4 to a float3x3 ? Sort of myfloat4x4.Truncate(3,3) ?

Thanks! I was too tired to think of typecasting like this :slight_smile: