vkd3d-shader/tpf: Compile HLSL to tpf through vsir, part 4.
- Nov 05, 2024
-
-
Francisco Casas authored
While we currently output instructions like this: sampleinfo_uint r0.x, rasterizer.xxxx > SAMPLE_INFO (111) 0 0000100[len:4] 0000000000001[1] 00001101111[opcode:111] └─ 0 000[d3i:0] 000[d2i:0] 000[d1i:0] 01[idxs:1] 00000000[type:0] 0000[0] 0001[wmask:1] 00[swtype:0] 10[dim:2] └─ 00000000000000000000000000000000[0|0.0] └─ 0 000[d3i:0] 000[d2i:0] 000[d1i:0] 00[idxs:0] 00001110[type:14] 00000000[sw:0] 01[swtype:1] 10[dim:2] FXC/d3dcompiler outputs instructions like this: sampleinfo o0.x, rasterizer.x > SAMPLE_INFO (111) 0 0000100[len:4] 0000000000000[0] 00001101111[opcode:111] └─ 0 000[d3i:0] 000[d2i:0] 000[d1i:0] 01[idxs:1] 00000010[type:2] 0000[0] 0001[wmask:1] 00[swtype:0] 10[dim:2] └─ 00000000000000000000000000000000[0|0.0] └─ 0 000[d3i:0] 000[d2i:0] 000[d1i:0] 00[idxs:0] 00001110[type:14] 000000[0] 00[swcomp:0] 10[swtype:2] 10[dim:2] Note the difference in swtype of the rasterizer src register.
-
Francisco Casas authored
Also, the profile check for GetRenderTargetSampleCount() is moved to parse time.
-
Francisco Casas authored
-
Francisco Casas authored
-
Francisco Casas authored
This allows us to remove the HLSL IR version of an instruction when the vsir version is properly implemented.
-