Skip to content

Commit

Permalink
add warning for missing dll error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Dec 9, 2023
1 parent 362e5af commit 73137c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/directx/dx/Dx12.hx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ abstract ShaderCompiler(hl.Abstract<"dx_compiler">) {
var nargs = new hl.NativeArray(args.length);
for( i in 0...args.length )
nargs[i] = @:privateAccess args[i].bytes;
/*
Compiling source can trigger a validation error if DXCOMPILER.DLL is missing
*/
var bytes = do_compile(cast this, @:privateAccess source.bytes, @:privateAccess profile.bytes, nargs, outLen);
return @:privateAccess new haxe.io.Bytes(bytes, outLen);
}
Expand Down

0 comments on commit 73137c0

Please sign in to comment.