mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
gpu/internal/convertshaders: build compute shaders in HLSL cs_5_0 profile
The recent changes to the compute shaders have fixed all errors previously reported by fxc. Switch from dxc to fxc to target shader model 5.0, supported by Direct3D 11. Because we know dxc must be available, always build compute shaders even though the result is not yet used. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -46,6 +46,8 @@ func (fxc *FXC) Compile(path, variant string, input []byte, entryPoint string, p
|
||||
profile = "ps_" + profileVersion
|
||||
case ".vert":
|
||||
profile = "vs_" + profileVersion
|
||||
case ".comp":
|
||||
profile = "cs_" + profileVersion
|
||||
default:
|
||||
return "", fmt.Errorf("unrecognized shader type %s", path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user