Skip to content

Commit

Permalink
Update function comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-perron committed Jan 2, 2024
1 parent 81c4a24 commit 1e34366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/clang/lib/SPIRV/DeclResultIdMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,6 +3220,8 @@ SpirvVariable *DeclResultIdMapper::getInstanceIdFromIndexAndBase(

SpirvVariable *DeclResultIdMapper::getBaseInstanceVariable(
SemanticInfo *semantic, const hlsl::SigPoint *sigPoint, QualType type) {
assert(type->isSpecificBuiltinType(BuiltinType::Kind::Int) ||
type->isSpecificBuiltinType(BuiltinType::Kind::UInt));
auto *baseInstanceVar = spvBuilder.addStageBuiltinVar(
type, spv::StorageClass::Input, spv::BuiltIn::BaseInstance, false,
semantic->loc);
Expand Down
2 changes: 2 additions & 0 deletions tools/clang/lib/SPIRV/DeclResultIdMapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ class DeclResultIdMapper {
//
// sigPoint: the signature point identifying which shader stage the variable
// will be used in.
//
// type: The type to use for the new variable. Must be int or unsigned int.
SpirvVariable *getBaseInstanceVariable(SemanticInfo *semantic,
const hlsl::SigPoint *sigPoint,
QualType type);
Expand Down

0 comments on commit 1e34366

Please sign in to comment.