ComputeSharp icon indicating copy to clipboard operation
ComputeSharp copied to clipboard

Ulong Support?

Open S41L0R opened this issue 4 years ago • 2 comments

Rationale

It's pretty self-explanatory. Ulongs (and also longs, for that matter) simply should be usable. The more primitives available, the better.

Proposed API

Same way as other primitives.

S41L0R avatar Jul 31 '21 17:07 S41L0R

Looks like int64_t operations are supported in shader model 6.0 and higher. See https://github.com/microsoft/DirectXShaderCompiler/wiki/Shader-Model-6.0

There's a caps bit here (Int64ShaderOps) to check for support: https://docs.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_feature_data_d3d12_options1

I couldn't find any documentation on what the exact limitations are, or exactly what "memory operations" means, but I guess it refers to int64_t support in constant/structured buffers and group shared memory.

paulbartrum avatar Sep 07 '21 05:09 paulbartrum

hm

S41L0R avatar Sep 07 '21 12:09 S41L0R