Skip to content

Commit

Permalink
remove another unneeded function
Browse files Browse the repository at this point in the history
  • Loading branch information
bob80905 committed Dec 2, 2023
1 parent 778767b commit 17b377c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion include/dxc/DXIL/DxilShaderModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ShaderModel {
bool IsAS() const { return m_Kind == Kind::Amplification; }
bool IsValid() const;
bool IsValidForDxil() const;
bool IsValidForModule() const;

Kind GetKind() const { return m_Kind; }
unsigned GetMajor() const { return m_Major; }
Expand Down
2 changes: 0 additions & 2 deletions lib/DXIL/DxilModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ void DxilModule::SetShaderModel(const ShaderModel *pSM, bool bUseMinPrecision) {
"shader model must not change for the module");
DXASSERT(pSM != nullptr && pSM->IsValidForDxil(),
"shader model must be valid");
DXASSERT(pSM->IsValidForModule(),
"shader model must be valid for top-level module use");
m_pSM = pSM;
m_pSM->GetDxilVersion(m_DxilMajor, m_DxilMinor);
m_pMDHelper->SetShaderModel(m_pSM);
Expand Down
6 changes: 0 additions & 6 deletions lib/DXIL/DxilShaderModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ bool ShaderModel::IsValidForDxil() const {
return false;
}

bool ShaderModel::IsValidForModule() const {
// Ray tracing shader model should only be used on functions in a lib
return IsValid() &&
!(m_Kind >= Kind::RayGeneration && m_Kind <= Kind::Callable);
}

const ShaderModel *ShaderModel::Get(Kind Kind, unsigned Major, unsigned Minor) {
/* <py::lines('VALRULE-TEXT')>hctdb_instrhelp.get_shader_model_get()</py>*/
// VALRULE-TEXT:BEGIN
Expand Down

0 comments on commit 17b377c

Please sign in to comment.