Explorar o código

Adding texturesTypes channels to Dx11. Remove useless push to texturesTypes on Dx12.

clementlandrin hai 1 ano
pai
achega
e875ff2e2d
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 0 2
      h3d/impl/DX12Driver.hx
  2. 2 2
      h3d/impl/DirectXDriver.hx

+ 0 - 2
h3d/impl/DX12Driver.hx

@@ -1063,8 +1063,6 @@ class DX12Driver extends h3d.impl.Driver {
 							for( i in 0...n )
 								allocConsts(1, vis, UAV);
 						}
-					case TSampler(_), TRWTexture(_):
-						regs.texturesTypes.push(v.type);
 					default:
 					}
 				}

+ 2 - 2
h3d/impl/DirectXDriver.hx

@@ -874,10 +874,10 @@ class DirectXDriver extends h3d.impl.Driver {
 		var p = shader.textures;
 		while( p != null ) {
 			switch( p.type ) {
-			case TArray( t = TSampler(_) | TRWTexture(_) , SConst(n) ):
+			case TArray( t = TSampler(_) | TRWTexture(_) | TChannel(_), SConst(n) ):
 				for( i in 0...n )
 					ctx.texturesTypes.push(t);
-			case TSampler(_), TRWTexture(_):
+			case TSampler(_), TRWTexture(_), TChannel(_):
 				ctx.texturesTypes.push(p.type);
 			default:
 			}