ComputeSharp icon indicating copy to clipboard operation
ComputeSharp copied to clipboard

16 Bit Scalar Types soon?

Open ha-ves opened this issue 1 year ago • 0 comments

Description (optional)

Quoting from DirectXCompiler 16 Bit Scalar Types

Starting with Shader Model 6.2, we are introducing true 16-bit scalar types with option /enable-16bit-types. If this mode is enabled, every min precision type is disabled and implicitly converted to its full scalar types.

Rationale

Using 16-bit precision types will tremendously make some usage more efficient.

Proposed API

HLSL 16-Bit Scalar Types

Drawbacks

As I see it there are only "standard types" being mapped to HLSL types, not the min-types, there seem to be minimal drawbacks.

Alternatives

Branch off into different Shader Models to use.

Other thoughts

Not Sure.

ha-ves avatar Dec 05 '24 15:12 ha-ves