yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
13dd01489
master
1#pragma once 2 3#include "core/slang-string-util.h" 4#include "slang-com-ptr.h" 5#include "slang-rhi.h" 6#include "slang.h" 7 8using Slang ::ComPtr ; 9 10class TestBase 11{ 12 13public : 14// Parses command line options including help, API selection, and test mode. 15int parseOption (int argc ,char ** argv ); 16 17void printEntrypointHashes ( 18int entryPointCount , 19int targetCount , 20ComPtr < slang ::IComponentType >& composedProgram ); 21 22bool isTestMode ()const {return m_isTestMode ; } 23bool shouldShowHelp ()const {return m_showHelp ; } 24rhi ::DeviceType getDeviceType ()const {return m_deviceType ; } 25 26void printUsage (const char * programName )const ; 27 28private : 29bool m_isTestMode = false; 30bool m_showHelp = false; 31rhi ::DeviceType m_deviceType = rhi ::DeviceType ::Default ; 32uint64_t m_globalCounter = 0 ; 33};