yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie Hermaszewskaformatf65d756bf

master
630 B37 linesraw
1// vk-query.h
2#pragma once
3
4#include "vk-base.h"
5#include "vk-device.h"
6
7namespace gfx
8{
9
10using namespace Slang;
11
12namespace vk
13{
14
15class QueryPoolImpl : public QueryPoolBase
16{
17public:
18    Result init(const IQueryPool::Desc& desc, DeviceImpl* device);
19    ~QueryPoolImpl();
20
21public:
22    virtual SLANG_NO_THROW Result SLANG_MCALL
23    getResult(GfxIndex index, GfxCount count, uint64_t* data) override;
24
25public:
26    VkQueryPool m_pool;
27    RefPtr<DeviceImpl> m_device;
28};
29
30void _writeTimestamp(
31    VulkanApi* api,
32    VkCommandBuffer vkCmdBuffer,
33    IQueryPool* queryPool,
34    SlangInt index);
35
36} // namespace vk
37} // namespace gfx