From b8f294445b998eadb9b09e2b91eb462b881eaf2e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 24 Jan 2020 15:06:08 -0500 Subject: Texture Sample available in CUDA (#1176) * WIP: Trying to figure out how texturing will work with CUDA. * WIP: Fixes for CUDA layout. Initial CUDA texture test. * WIP: Outputs something compilable by CUDA for TextureND.Sample * 2d texture working with CUDA. * Fix how binding for SamplerState occurs in CUDA. * Small tidy up of comments. --- source/core/slang-platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/core/slang-platform.h') diff --git a/source/core/slang-platform.h b/source/core/slang-platform.h index c3ad1c486..767e83c1d 100644 --- a/source/core/slang-platform.h +++ b/source/core/slang-platform.h @@ -128,6 +128,9 @@ namespace Slang /// True if the kind is part of the family static bool isFamily(PlatformFamily family, PlatformKind kind) { return (getPlatformFlags(family) & (PlatformFlags(1) << int(kind))) != 0; } + /// Given an environment name returns the set system variable. + /// Will return SLANG_E_NOT_FOUND if the variable is not set + static SlangResult getEnvironmentVariable(const UnownedStringSlice& name, StringBuilder& out); }; #ifndef _MSC_VER -- cgit v1.2.3