Skip to content

Commit

Permalink
D3DX12 header shouldn't guard Enhanced Barrier helpers with D3DX12_NO…
Browse files Browse the repository at this point in the history
…_STATE_OBJECT_HELPERS (microsoft#61)
  • Loading branch information
walbourn authored May 9, 2022
1 parent 9ebf853 commit 4ae3ba3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions include/directx/d3dx12.h
Original file line number Diff line number Diff line change
Expand Up @@ -3293,9 +3293,9 @@ inline bool operator==( const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC &a, const D3D
//
//================================================================================================
#include <list>
#include <memory>
#include <string>
#include <vector>
#include <memory>
#ifndef D3DX12_USE_ATL
#include <wrl/client.h>
#define D3DX12_COM_PTR Microsoft::WRL::ComPtr
Expand Down Expand Up @@ -4051,6 +4051,13 @@ class CD3DX12_NODE_MASK_SUBOBJECT
D3D12_NODE_MASK m_Desc;
};

#endif // !D3DX12_NO_STATE_OBJECT_HELPERS


//================================================================================================
// D3DX12 Enhanced Barrier Helpers
//================================================================================================

class CD3DX12_BARRIER_SUBRESOURCE_RANGE : public D3D12_BARRIER_SUBRESOURCE_RANGE
{
public:
Expand Down Expand Up @@ -4173,11 +4180,12 @@ class CD3DX12_BARRIER_GROUP : public D3D12_BARRIER_GROUP
};


#endif // #ifndef D3DX12_NO_STATE_OBJECT_HELPERS

#ifndef D3DX12_NO_CHECK_FEATURE_SUPPORT_CLASS

//------------------------------------------------------------------------------------------------
//================================================================================================
// D3DX12 Check Feature Support
//================================================================================================

#include <vector>

class CD3DX12FeatureSupport
Expand Down Expand Up @@ -5082,7 +5090,7 @@ inline HRESULT CD3DX12FeatureSupport::QueryProtectedResourceSessionTypes(UINT No

// end CD3DX12FeatureSupport

#endif // #ifndef D3DX12_NO_CHECK_FEATURE_SUPPORT_CLASS
#endif // !D3DX12_NO_CHECK_FEATURE_SUPPORT_CLASS

#undef D3DX12_COM_PTR
#undef D3DX12_COM_PTR_GET
Expand Down

0 comments on commit 4ae3ba3

Please sign in to comment.