@@ -157,6 +157,7 @@ HL_PRIM dx_driver *HL_NAME(create)( HWND window, int flags, uchar *dev_desc ) {
157
157
#if defined(_DEBUG)
158
158
params.ProcessDebugFlags = D3D12_PROCESS_DEBUG_FLAG_DEBUG_LAYER_ENABLED;
159
159
#endif
160
+ params.ProcessDebugFlags |= D3D12XBOX_PROCESS_DEBUG_FLAG_ENABLE_COMMON_STATE_PROMOTION;
160
161
params.GraphicsCommandQueueRingSizeBytes = static_cast <UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
161
162
params.GraphicsScratchMemorySizeBytes = static_cast <UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
162
163
params.ComputeScratchMemorySizeBytes = static_cast <UINT>(D3D12XBOX_DEFAULT_SIZE_BYTES);
@@ -833,6 +834,10 @@ void HL_NAME(command_list_resource_barrier)( ID3D12GraphicsCommandList *l, D3D12
833
834
l->ResourceBarrier (1 ,barrier);
834
835
}
835
836
837
+ void HL_NAME (command_list_resource_barriers)(ID3D12GraphicsCommandList* l, D3D12_RESOURCE_BARRIER* barrier, int barrierCount) {
838
+ l->ResourceBarrier (barrierCount, barrier);
839
+ }
840
+
836
841
void HL_NAME (command_list_clear_render_target_view)( ID3D12GraphicsCommandList *l, D3D12_CPU_DESCRIPTOR_HANDLE view, FLOAT *colors ) {
837
842
l->ClearRenderTargetView (view,colors,0 ,NULL );
838
843
}
@@ -971,6 +976,7 @@ DEFINE_PRIM(_RES, command_list_create, _I32 _RES _RES);
971
976
DEFINE_PRIM (_VOID, command_list_close, _RES);
972
977
DEFINE_PRIM (_VOID, command_list_reset, _RES _RES _RES);
973
978
DEFINE_PRIM (_VOID, command_list_resource_barrier, _RES _STRUCT);
979
+ DEFINE_PRIM (_VOID, command_list_resource_barriers, _RES _ABSTRACT (hl_carray) _I32);
974
980
DEFINE_PRIM (_VOID, command_list_execute, _RES);
975
981
DEFINE_PRIM (_VOID, command_list_clear_render_target_view, _RES _I64 _STRUCT);
976
982
DEFINE_PRIM (_VOID, command_list_clear_depth_stencil_view, _RES _I64 _I32 _F32 _I32);
0 commit comments