yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
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 : 18Result init (const IQueryPool ::Desc & desc ,DeviceImpl * device ); 19 ~QueryPoolImpl (); 20 21public : 22virtual SLANG_NO_THROW Result SLANG_MCALL 23getResult (GfxIndex index ,GfxCount count ,uint64_t * data )override ; 24 25public : 26VkQueryPool m_pool ; 27RefPtr < DeviceImpl > m_device ; 28}; 29 30void _writeTimestamp ( 31VulkanApi * api , 32VkCommandBuffer vkCmdBuffer , 33IQueryPool * queryPool , 34SlangInt index ); 35 36}// namespace vk 37}// namespace gfx