Explorar o código

add shader text output to shader dump

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
5f2b01c20f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      hxsl/Cache.hx

+ 2 - 0
hxsl/Cache.hx

@@ -330,6 +330,8 @@ class Cache {
 			byID.set(r.signature, r);
 
 		#if shader_debug_dump
+		dbg.writeString("---- OUTPUT -----\n\n");
+		dbg.writeString(h3d.Engine.getCurrent().driver.getNativeShaderCode(r)+"\n\n");
 		if( dbg != null ) dbg.close();
 		haxe.Log.trace = oldTrace;
 		#end