mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
1d3a9fb2d6
D3DCompile successfully compiles shaders fxc.exe doesn't. As a bonus the DirectX SDK is no longer required (it includes fxc.exe). Signed-off-by: Elias Naur <mail@eliasnaur.com>
10 lines
224 B
Go
10 lines
224 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package main
|
|
|
|
import "gioui.org/internal/d3dcompile"
|
|
|
|
func compileHLSL(src, entry, profile string) ([]byte, error) {
|
|
return d3dcompile.D3DCompile([]byte(src), entry, profile)
|
|
}
|