Ver código fonte

add shader text output to shader dump

Nicolas Cannasse 4 anos atrás
pai
commit
5f2b01c20f
1 arquivos alterados com 2 adições e 0 exclusões
  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