Skip to content

Commit

Permalink
remove misleading function
Browse files Browse the repository at this point in the history
  • Loading branch information
bob80905 committed Dec 1, 2023
1 parent 8a37a92 commit 778767b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions include/dxc/DXIL/DxilShaderModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ class ShaderModel {
bool IsDS() const { return m_Kind == Kind::Domain; }
bool IsCS() const { return m_Kind == Kind::Compute; }
bool IsLib() const { return m_Kind == Kind::Library; }
bool IsRay() const {
return m_Kind >= Kind::RayGeneration && m_Kind <= Kind::Callable;
}
bool IsMS() const { return m_Kind == Kind::Mesh; }
bool IsAS() const { return m_Kind == Kind::Amplification; }
bool IsValid() const;
Expand Down
3 changes: 2 additions & 1 deletion lib/DXIL/DxilShaderModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ bool ShaderModel::IsValidForDxil() const {

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

const ShaderModel *ShaderModel::Get(Kind Kind, unsigned Major, unsigned Minor) {
Expand Down

0 comments on commit 778767b

Please sign in to comment.