diff options
| author | Yong He <yonghe@outlook.com> | 2021-06-11 12:49:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-11 12:49:04 -0700 |
| commit | 746ee0dc5bddeea177aaf609bcc5085b46c4057c (patch) | |
| tree | 699e24ca1c1d6889afed9c6e0b1418d637603df9 /tools/gfx/cpu/render-cpu.cpp | |
| parent | 37e8917d10626b519470f2e34625f0efe741352f (diff) | |
Properly fill `declref` in `Linkage::getContainerType`. (#1882)
* Properly fill `declref` in `Linkage::getContainerType`.
* Fix timestamp query on cpu
* Fix typo.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/cpu/render-cpu.cpp')
| -rw-r--r-- | tools/gfx/cpu/render-cpu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/cpu/render-cpu.cpp b/tools/gfx/cpu/render-cpu.cpp index ac8b612fb..f635cf727 100644 --- a/tools/gfx/cpu/render-cpu.cpp +++ b/tools/gfx/cpu/render-cpu.cpp @@ -1132,6 +1132,7 @@ public: static const float kIdentity[] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; ::memcpy(m_info.identityProjectionMatrix, kIdentity, sizeof(kIdentity)); m_info.adapterName = "CPU"; + m_info.timestampFrequency = 1000000000; } return SLANG_OK; @@ -1259,6 +1260,7 @@ public: const IQueryPool::Desc& desc, IQueryPool** outPool) override { RefPtr<CPUQueryPool> pool = new CPUQueryPool(); + pool->init(desc); returnComPtr(outPool, pool); return SLANG_OK; } |
