MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / SetContextForTesting

Method SetContextForTesting

source/opt/pass.h:90–90  ·  view source on GitHub ↗

Sets the pointer to the current context for this pass.

Source from the content-addressed store, hash-verified

88
89 // Sets the pointer to the current context for this pass.
90 void SetContextForTesting(IRContext* ctx) { context_ = ctx; }
91
92 // Returns a pointer to the current context for this pass.
93 IRContext* context() const { return context_; }

Callers 2

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected