소스 검색

implement getShaderInputNames for NullDriver

Nicolas Cannasse 9 년 전
부모
커밋
331b4e0d38
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      h3d/impl/NullDriver.hx

+ 5 - 2
h3d/impl/NullDriver.hx

@@ -43,8 +43,11 @@ class NullDriver extends Driver {
 	}
 
 	override function getShaderInputNames() : Array<String> {
-		throw "TODO:getShaderInputNames";
-		return null;
+		var names = [];
+		for( v in cur.vertex.data.vars )
+			if( v.kind == Input )
+				names.push(v.name);
+		return names;
 	}
 
 	override function allocTexture( t : h3d.mat.Texture ) : Texture {