diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-08-29 11:26:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-29 11:26:27 +0800 |
| commit | af363c02bf0fa2502c14f454965adff87170ff15 (patch) | |
| tree | cc3f49d1f2a80bc02d5afd795ac73f168203d40a /source/slang | |
| parent | 508dc3a95de50de4a4d07d0a72a18e40d55b0e2e (diff) | |
s/depreciated/deprecated/ (#3153)
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 2 | ||||
| -rw-r--r-- | source/slang/slang-options.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
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! |
