Browse Source

Fix texture types on Dx12

clementlandrin 1 year ago
parent
commit
e669c9c83a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      h3d/impl/DX12Driver.hx

+ 2 - 0
h3d/impl/DX12Driver.hx

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