Bladeren bron

fixed omSetDepthStencilState (stencil ref value)

Nicolas Cannasse 7 jaren geleden
bovenliggende
commit
92d89fa361
3 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 1 1
      libs/directx/directx.cpp
  2. 2 2
      libs/directx/dx/Driver.hx
  3. 1 1
      libs/directx/haxelib.json

+ 1 - 1
libs/directx/directx.cpp

@@ -472,7 +472,7 @@ DEFINE_PRIM(_POINTER, create_input_layout, _ARR _BYTES _I32);
 DEFINE_PRIM(_RESOURCE, create_texture_2d, _DYN _BYTES);
 DEFINE_PRIM(_POINTER, create_depth_stencil_view, _RESOURCE _I32);
 DEFINE_PRIM(_POINTER, create_depth_stencil_state, _DYN);
-DEFINE_PRIM(_VOID, om_set_depth_stencil_state, _POINTER);
+DEFINE_PRIM(_VOID, om_set_depth_stencil_state, _POINTER _I32);
 DEFINE_PRIM(_VOID, clear_depth_stencil_view, _POINTER _NULL(_F64) _NULL(_I32));
 DEFINE_PRIM(_POINTER, create_blend_state, _BOOL _BOOL _ARR _I32);
 DEFINE_PRIM(_VOID, om_set_blend_state, _POINTER _BYTES _I32);

+ 2 - 2
libs/directx/dx/Driver.hx

@@ -301,7 +301,7 @@ class Texture2dDesc {
 	var DecrSat = 5;
 	var Invert = 6;
 	var Incr = 7;
-	var Desc = 8;
+	var Decr = 8;
 }
 
 @:keep
@@ -598,7 +598,7 @@ class Driver {
 		return null;
 	}
 
-	public static function omSetDepthStencilState( state : DepthStencilState ) : Void {
+	public static function omSetDepthStencilState( state : DepthStencilState, ref : Int ) : Void {
 	}
 
 	public static function clearDepthStencilView( view : DepthStencilView, depth : Null<Float>, stencil : Null<Int> ) {

+ 1 - 1
libs/directx/haxelib.json

@@ -4,7 +4,7 @@
 	"license" : "BSD",
 	"contributors" : ["ncannasse"],
 	"description" : "DirectX support for Haxe/HL.",
-	"version" : "1.6.0",
+	"version" : "1.7.0",
 	"releasenote" : "",
 	"dependencies": { "hlopenal" : "" }
 }