https://github.com/shader-slang/slang
Revision ea0845285b0307d153a91d6f0a5010fc2d7219ed authored by Yong He on 05 September 2022, 07:38:45 UTC, committed by GitHub on 05 September 2022, 07:38:45 UTC
* Multi parameter `__subscript`

* Fix.

* Fix bugs.

* Fix.

Co-authored-by: Yong He <yhe@nvidia.com>
1 parent 2a869c1
Raw File
Tip revision: ea0845285b0307d153a91d6f0a5010fc2d7219ed authored by Yong He on 05 September 2022, 07:38:45 UTC
Multi parameter `__subscript` (#2392)
Tip revision: ea08452
slang-cpp-host-prelude.h
#ifndef SLANG_CPP_HOST_PRELUDE_H
#define SLANG_CPP_HOST_PRELUDE_H

#include <cstdio>
#include <cmath>
#include <cstring>

#define SLANG_COM_PTR_ENABLE_REF_OPERATOR 1

#include "../source/slang-rt/slang-rt.h"
#include "../slang-com-ptr.h"
#include "slang-cpp-types.h"

using namespace Slang;

template<typename TResult, typename... Args>
using Slang_FuncType = TResult(SLANG_MCALL *)(Args...);

#endif
back to top