yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
549 B30 linesraw
1// metal-query.h
2#pragma once
3
4#include "metal-base.h"
5#include "metal-device.h"
6
7namespace gfx
8{
9
10using namespace Slang;
11
12namespace metal
13{
14
15class QueryPoolImpl : public QueryPoolBase
16{
17public:
18    RefPtr<DeviceImpl> m_device;
19    NS::SharedPtr<MTL::CounterSampleBuffer> m_counterSampleBuffer;
20
21    ~QueryPoolImpl();
22
23    Result init(DeviceImpl* device, const IQueryPool::Desc& desc);
24
25    virtual SLANG_NO_THROW Result SLANG_MCALL
26    getResult(GfxIndex index, GfxCount count, uint64_t* data) override;
27};
28
29} // namespace metal
30} // namespace gfx