diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/compiler-core/slang-artifact.h | 6 | ||||
| -rw-r--r-- | source/compiler-core/slang-downstream-compiler.h | 4 | ||||
| -rw-r--r-- | source/slang/hlsl.meta.slang | 2 | ||||
| -rw-r--r-- | source/slang/slang-options.cpp | 12 |
4 files changed, 12 insertions, 12 deletions
diff --git a/source/compiler-core/slang-artifact.h b/source/compiler-core/slang-artifact.h index 6072cdf76..4f33f5e2e 100644 --- a/source/compiler-core/slang-artifact.h +++ b/source/compiler-core/slang-artifact.h @@ -74,7 +74,7 @@ static_assert(std::is_trivially_copyable_v<TerminatedCharSlice>); If some aspect can apply to multiple items identically we move that to a separate enum. NOTE! -New Kinds must be added at the end. Values can be depreciated, or disabled +New Kinds must be added at the end. Values can be deprecated, or disabled but never removed, without breaking binary compatability. Any change requires a change to SLANG_ARTIFACT_KIND @@ -121,7 +121,7 @@ enum class ArtifactKind : uint8_t SlangIR and LLVMIR can be GPU or CPU orientated, so put in own category. NOTE! -New Payloads must be added at the end. Values can be depreciated, or disabled +New Payloads must be added at the end. Values can be deprecated, or disabled but never removed, without breaking binary compatability. Any change requires a change to SLANG_ARTIFACT_PAYLOAD @@ -196,7 +196,7 @@ enum class ArtifactPayload : uint8_t /* Style. NOTE! -New Styles must be added at the end. Values can be depreciated, or disabled +New Styles must be added at the end. Values can be deprecated, or disabled but never removed, without breaking binary compatability. Any change requires a change to SLANG_ARTIFACT_STYLE diff --git a/source/compiler-core/slang-downstream-compiler.h b/source/compiler-core/slang-downstream-compiler.h index 4feffa743..c8cd02783 100644 --- a/source/compiler-core/slang-downstream-compiler.h +++ b/source/compiler-core/slang-downstream-compiler.h @@ -260,8 +260,8 @@ struct DownstreamCompileOptions }; static_assert(std::is_trivially_copyable_v<DownstreamCompileOptions>); -#define SLANG_ALIAS_DEPRECIATED_VERSION(name, id, firstField, lastField) \ -struct name##_AliasDepreciated##id \ +#define SLANG_ALIAS_DEPRECATED_VERSION(name, id, firstField, lastField) \ +struct name##_AliasDeprecated##id \ { \ static const ptrdiff_t kStart = SLANG_OFFSET_OF(name, firstField); \ static const ptrdiff_t kEnd = SLANG_OFFSET_OF(name, lastField) + sizeof(name::lastField); \ diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index a3900826e..81f05d3d4 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -3379,7 +3379,7 @@ int NonUniformResourceIndex(int index) /// It's effect is presumably to ignore it, which the following implementation does. /// We should also look to add a warning for this scenario. [__unsafeForceInlineEarly] -[deprecated("NonUniformResourceIndex on a type other than uint/int is depreciated and has no effect")] +[deprecated("NonUniformResourceIndex on a type other than uint/int is deprecated and has no effect")] T NonUniformResourceIndex<T>(T value) { return value; } // Normalize a vector diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 545f222de..c911baea4 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -151,7 +151,7 @@ enum class OptionKind SaveStdLibBinSource, TrackLiveness, - // Depreciated + // Deprecated ParameterBlocksUseRegisterSpaces, CountOf, @@ -225,7 +225,7 @@ void initCommandOptions(CommandOptions& options) options.addCategory(CategoryKind::Option, "Debugging", "Compiler debugging/instrumentation options"); options.addCategory(CategoryKind::Option, "Experimental", "Experimental options (use at your own risk)"); options.addCategory(CategoryKind::Option, "Internal", "Internal-use options (use at your own risk)"); - options.addCategory(CategoryKind::Option, "Depreciated", "Deprecated options (allowed but ignored; may be removed in future)"); + options.addCategory(CategoryKind::Option, "Deprecated", "Deprecated options (allowed but ignored; may be removed in future)"); // Do the easy ones { @@ -629,15 +629,15 @@ void initCommandOptions(CommandOptions& options) }; _addOptions(makeConstArrayView(internalOpts), options); - /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Depreciated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ + /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Deprecated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ - options.setCategory("Depreciated"); + options.setCategory("Deprecated"); - const Option depreciatedOpts[] = + const Option deprecatedOpts[] = { { OptionKind::ParameterBlocksUseRegisterSpaces, "-parameter-blocks-use-register-spaces", nullptr, "Parameter blocks will use register spaces" }, }; - _addOptions(makeConstArrayView(depreciatedOpts), options); + _addOptions(makeConstArrayView(deprecatedOpts), options); // We can now check that the whole range is available. If this fails it means there // is an enum in the list that hasn't been setup as an option! |
