mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 01:42:05 +01:00
internal/graphicsdriver/directx: lower the shader version for feature levels 10.x
Updates #2613
This commit is contained in:
parent
dbb167c2d0
commit
fe42c1f2b5
@ -81,7 +81,7 @@ func compileShader(vs, ps string) (vsh, psh *_ID3DBlob, ferr error) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
wg.Go(func() error {
|
wg.Go(func() error {
|
||||||
v, err := _D3DCompile([]byte(vs), "shader", nil, nil, "VSMain", "vs_5_0", flag, 0)
|
v, err := _D3DCompile([]byte(vs), "shader", nil, nil, "VSMain", "vs_4_0", flag, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("directx: D3DCompile for VSMain failed, original source: %s, %w", vs, err)
|
return fmt.Errorf("directx: D3DCompile for VSMain failed, original source: %s, %w", vs, err)
|
||||||
}
|
}
|
||||||
@ -90,7 +90,7 @@ func compileShader(vs, ps string) (vsh, psh *_ID3DBlob, ferr error) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
wg.Go(func() error {
|
wg.Go(func() error {
|
||||||
p, err := _D3DCompile([]byte(ps), "shader", nil, nil, "PSMain", "ps_5_0", flag, 0)
|
p, err := _D3DCompile([]byte(ps), "shader", nil, nil, "PSMain", "ps_4_0", flag, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("directx: D3DCompile for PSMain failed, original source: %s, %w", ps, err)
|
return fmt.Errorf("directx: D3DCompile for PSMain failed, original source: %s, %w", ps, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user