Browse Source

Fix length in CacheFileBuilder-DX12

Yuxiao Mao 1 year ago
parent
commit
efc8e95bdc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxsl/CacheFileBuilder.hx

+ 1 - 1
hxsl/CacheFileBuilder.hx

@@ -198,7 +198,7 @@ class CacheFileBuilder {
 			var sign = @:privateAccess dx12Driver.computeRootSignature(r);
 			var sign = @:privateAccess dx12Driver.computeRootSignature(r);
 			out.baseRegister = rd.vertex ? 0 : sign.fragmentRegStart;
 			out.baseRegister = rd.vertex ? 0 : sign.fragmentRegStart;
 			var code = out.run(rd.data);
 			var code = out.run(rd.data);
-			var serializeRootSignature = @:privateAccess dx12Driver.stringifyRootSignature(sign.sign, "ROOT_SIGNATURE", sign.params);
+			var serializeRootSignature = @:privateAccess dx12Driver.stringifyRootSignature(sign.sign, "ROOT_SIGNATURE", sign.params, sign.paramsCount);
 			code = serializeRootSignature + code;
 			code = serializeRootSignature + code;
 			sys.io.File.saveContent(tmpSrc, code);
 			sys.io.File.saveContent(tmpSrc, code);
 			var args = ["-rootsig-define", "ROOT_SIGNATURE", "-T", (rd.vertex ? "vs_" : "ps_") + dxcShaderVersion,"-O3","-Fo", tmpOut, tmpSrc];
 			var args = ["-rootsig-define", "ROOT_SIGNATURE", "-T", (rd.vertex ? "vs_" : "ps_") + dxcShaderVersion,"-O3","-Fo", tmpOut, tmpSrc];