Skip to content

Commit 24184f4

Browse files
committed
[hldx] Upgraded hldx to 1.15.0 :
- Added command_list_resource_barriers method - Allowed state promotion for console
1 parent 783cd2a commit 24184f4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

libs/directx/dx/Dx12.hx

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ abstract CommandList(Resource) {
180180
public function clearDepthStencilView( rtv : Address, flags : ClearFlags, depth : Single, stencil : Int ) {}
181181
public function reset( alloc : CommandAllocator, state : PipelineState ) {}
182182
public function resourceBarrier( b : ResourceBarrier ) {}
183+
public function resourceBarriers( b : hl.CArray<ResourceBarrier>, barrierCount : Int ) {}
183184
public function setPipelineState( state : PipelineState ) {}
184185
public function setDescriptorHeaps( heaps : hl.NativeArray<DescriptorHeap> ) {}
185186
public function copyBufferRegion( dst : GpuResource, dstOffset : Int64, src : GpuResource, srcOffset : Int64, size : Int64 ) {}

libs/directx/dx12.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ HL_PRIM dx_driver *HL_NAME(create)( HWND window, int flags, uchar *dev_desc ) {
157157
#if defined(_DEBUG)
158158
params.ProcessDebugFlags = D3D12_PROCESS_DEBUG_FLAG_DEBUG_LAYER_ENABLED;
159159
#endif
160+
params.ProcessDebugFlags |= D3D12XBOX_PROCESS_DEBUG_FLAG_ENABLE_COMMON_STATE_PROMOTION;
160161
params.GraphicsCommandQueueRingSizeBytes = static_cast<UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
161162
params.GraphicsScratchMemorySizeBytes = static_cast<UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
162163
params.ComputeScratchMemorySizeBytes = static_cast<UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
@@ -833,6 +834,10 @@ void HL_NAME(command_list_resource_barrier)( ID3D12GraphicsCommandList *l, D3D12
833834
l->ResourceBarrier(1,barrier);
834835
}
835836

837+
void HL_NAME(command_list_resource_barriers)(ID3D12GraphicsCommandList* l, D3D12_RESOURCE_BARRIER* barrier, int barrierCount) {
838+
l->ResourceBarrier(barrierCount, barrier);
839+
}
840+
836841
void HL_NAME(command_list_clear_render_target_view)( ID3D12GraphicsCommandList *l, D3D12_CPU_DESCRIPTOR_HANDLE view, FLOAT *colors ) {
837842
l->ClearRenderTargetView(view,colors,0,NULL);
838843
}
@@ -971,6 +976,7 @@ DEFINE_PRIM(_RES, command_list_create, _I32 _RES _RES);
971976
DEFINE_PRIM(_VOID, command_list_close, _RES);
972977
DEFINE_PRIM(_VOID, command_list_reset, _RES _RES _RES);
973978
DEFINE_PRIM(_VOID, command_list_resource_barrier, _RES _STRUCT);
979+
DEFINE_PRIM(_VOID, command_list_resource_barriers, _RES _ABSTRACT(hl_carray) _I32);
974980
DEFINE_PRIM(_VOID, command_list_execute, _RES);
975981
DEFINE_PRIM(_VOID, command_list_clear_render_target_view, _RES _I64 _STRUCT);
976982
DEFINE_PRIM(_VOID, command_list_clear_depth_stencil_view, _RES _I64 _I32 _F32 _I32);

libs/directx/haxelib.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license" : "BSD",
55
"contributors" : ["ncannasse"],
66
"description" : "DirectX support for Haxe/HL.",
7-
"version" : "1.14.0",
7+
"version" : "1.15.0",
88
"releasenote" : "",
99
"dependencies": {}
1010
}

0 commit comments

Comments
 (0)