summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-15 14:22:59 -0700
committerGitHub <noreply@github.com>2022-09-15 14:22:59 -0700
commita6032446c6bf7f64d1e201bf438a4c7605a3dbb4 (patch)
treea95267c52155e13699ff9aab38ab68353d76939e /tools
parent05f9aaf6a4ef246dcf89b00000a8e59e90c47662 (diff)
Language feature: pointer sized int types. (#2401)
* Language feature: pointer sized int types. * Fix. * small change to test. * Fix stdlib. * Fix. * Fix. * Add typedef for `size_t` in stdlib. * Fix test. * Add `intptr_t::size` constant. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/gfx.slang8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gfx/gfx.slang b/tools/gfx/gfx.slang
index 02e31fad2..d57b746db 100644
--- a/tools/gfx/gfx.slang
+++ b/tools/gfx/gfx.slang
@@ -4,13 +4,13 @@ namespace gfx
{
typedef slang.Result Result;
-typedef int64_t Int;
-typedef uint64_t UInt;
+typedef intptr_t Int;
+typedef uintptr_t UInt;
typedef uint64_t DeviceAddress;
typedef int GfxIndex;
typedef int GfxCount;
-typedef uint64_t Size;
-typedef uint64_t Offset;
+typedef intptr_t Size;
+typedef intptr_t Offset;
const uint64_t kTimeoutInfinite = 0xFFFFFFFFFFFFFFFF;