yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
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 : 18RefPtr < DeviceImpl > m_device ; 19NS ::SharedPtr < MTL ::CounterSampleBuffer > m_counterSampleBuffer ; 20 21 ~QueryPoolImpl (); 22 23Result init (DeviceImpl * device ,const IQueryPool ::Desc & desc ); 24 25virtual SLANG_NO_THROW Result SLANG_MCALL 26getResult (GfxIndex index ,GfxCount count ,uint64_t * data )override ; 27}; 28 29}// namespace metal 30}// namespace gfx