Skip to content

Commit

Permalink
Implemented GetRequiresFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsbishere committed Dec 15, 2024
1 parent 3618faf commit 7a75c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion external/DirectX-Headers
4 changes: 4 additions & 0 deletions lib/HLSL/DxilContainerReflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ class CInvalidFunction final : public ID3D12FunctionReflection1 {
// Use D3D_RETURN_PARAMETER_INDEX to get description of the return value.
STDMETHOD_(ID3D12FunctionParameterReflection *, GetFunctionParameter)
(INT ParameterIndex) { return &g_InvalidFunctionParameter; }

STDMETHOD_(UINT64, GetRequiresFlags)() { return 0; }
};
CInvalidFunction g_InvalidFunction;

Expand Down Expand Up @@ -2874,6 +2876,8 @@ class CFunctionReflection final : public ID3D12FunctionReflection1 {
// Use D3D_RETURN_PARAMETER_INDEX to get description of the return value.
STDMETHOD_(ID3D12FunctionParameterReflection *, GetFunctionParameter)
(INT ParameterIndex) { return &g_InvalidFunctionParameter; }

STDMETHOD_(UINT64, GetRequiresFlags)() { return m_FeatureFlags; }
};

HRESULT CFunctionReflection::GetDesc(D3D12_FUNCTION_DESC *pDesc) {
Expand Down

0 comments on commit 7a75c7f

Please sign in to comment.