Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
2
lib/vscode/extensions/hlsl/.vscodeignore
Normal file
2
lib/vscode/extensions/hlsl/.vscodeignore
Normal file
@ -0,0 +1,2 @@
|
||||
test/**
|
||||
cgmanifest.json
|
17
lib/vscode/extensions/hlsl/cgmanifest.json
Normal file
17
lib/vscode/extensions/hlsl/cgmanifest.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"registrations": [
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"name": "shaders-tmLanguage",
|
||||
"repositoryUrl": "https://github.com/tgjones/shaders-tmLanguage",
|
||||
"commitHash": "87c0dca3a39170dbd7ee7e277db4f915fb2de14a"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
23
lib/vscode/extensions/hlsl/language-configuration.json
Normal file
23
lib/vscode/extensions/hlsl/language-configuration.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//",
|
||||
"blockComment": [ "/*", "*/" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""]
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""]
|
||||
]
|
||||
}
|
25
lib/vscode/extensions/hlsl/package.json
Normal file
25
lib/vscode/extensions/hlsl/package.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "hlsl",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": { "vscode": "*" },
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js tgjones/shaders-tmLanguage grammars/hlsl.json ./syntaxes/hlsl.tmLanguage.json"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "hlsl",
|
||||
"extensions": [".hlsl",".hlsli",".fx",".fxh",".vsh",".psh",".cginc",".compute"],
|
||||
"aliases": ["HLSL", "hlsl"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "hlsl",
|
||||
"path": "./syntaxes/hlsl.tmLanguage.json",
|
||||
"scopeName":"source.hlsl"
|
||||
}]
|
||||
}
|
||||
}
|
4
lib/vscode/extensions/hlsl/package.nls.json
Normal file
4
lib/vscode/extensions/hlsl/package.nls.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "HLSL Language Basics",
|
||||
"description": "Provides syntax highlighting and bracket matching in HLSL files."
|
||||
}
|
217
lib/vscode/extensions/hlsl/syntaxes/hlsl.tmLanguage.json
Normal file
217
lib/vscode/extensions/hlsl/syntaxes/hlsl.tmLanguage.json
Normal file
@ -0,0 +1,217 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/tgjones/shaders-tmLanguage/blob/master/grammars/hlsl.json",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/87c0dca3a39170dbd7ee7e277db4f915fb2de14a",
|
||||
"name": "HLSL",
|
||||
"scopeName": "source.hlsl",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.block.hlsl",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/"
|
||||
},
|
||||
{
|
||||
"name": "comment.line.double-slash.hlsl",
|
||||
"begin": "//",
|
||||
"end": "$"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "(\\.([0-9]+)(F|f)?)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "\\b([0-9]+(F|f)?)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.hex.hlsl",
|
||||
"match": "\\b(0(x|X)[0-9a-fA-F]+)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.language.hlsl",
|
||||
"match": "\\b(false|true)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.preprocessor.hlsl",
|
||||
"match": "^\\s*#\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.hlsl",
|
||||
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.fx.hlsl",
|
||||
"match": "\\b(compile)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.typealias.hlsl",
|
||||
"match": "\\b(typedef)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.basic.hlsl",
|
||||
"match": "\\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.function.hlsl",
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm4.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_ClipDistance[0-9]*|SV_CullDistance[0-9]*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual[0-9]*|SV_DepthLessEqual[0-9]*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm5.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm5_1.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.hlsl",
|
||||
"match": "\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.float.hlsl",
|
||||
"match": "\\b(snorm|unorm)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.postfix.hlsl",
|
||||
"match": "\\b(packoffset|register)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.interpolation.hlsl",
|
||||
"match": "\\b(centroid|linear|nointerpolation|noperspective|sample)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.geometryshader.hlsl",
|
||||
"match": "\\b(lineadj|line|point|triangle|triangleadj)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.other.hlsl",
|
||||
"match": "\\b(string)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.hlsl",
|
||||
"match": "\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.rasterizerordered.hlsl",
|
||||
"match": "\\b(RasterizerOrderedBuffer|RasterizerOrderedByteAddressBuffer|RasterizerOrderedStructuredBuffer|RasterizerOrderedTexture1D|RasterizerOrderedTexture1DArray|RasterizerOrderedTexture2D|RasterizerOrderedTexture2DArray|RasterizerOrderedTexture3D)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.rw.hlsl",
|
||||
"match": "\\b(RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture1D|RWTexture1DArray|RWTexture2D|RWTexture2DArray|RWTexture3D)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.geometryshader.hlsl",
|
||||
"match": "\\b(LineStream|PointStream|TriangleStream)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.sampler.legacy.hlsl",
|
||||
"match": "\\b(sampler|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler_state)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.sampler.hlsl",
|
||||
"match": "\\b(SamplerState|SamplerComparisonState)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.texture.legacy.hlsl",
|
||||
"match": "\\b(texture2D|textureCUBE)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.texture.hlsl",
|
||||
"match": "\\b(Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture2DMS|Texture2DMSArray|Texture3D|TextureCube|TextureCubeArray)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.structured.hlsl",
|
||||
"match": "\\b(cbuffer|class|interface|namespace|struct|tbuffer)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.hlsl",
|
||||
"match": "\\b(FALSE|TRUE|NULL)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.fx.hlsl",
|
||||
"match": "\\b(BlendState|DepthStencilState|RasterizerState)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.fx.technique.hlsl",
|
||||
"match": "\\b(technique|Technique|technique10|technique11|pass)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.blendstate.hlsl",
|
||||
"match": "\\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.depthstencilstate.hlsl",
|
||||
"match": "\\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.rasterizerstate.hlsl",
|
||||
"match": "\\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.samplerstate.hlsl",
|
||||
"match": "\\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.blend.hlsl",
|
||||
"match": "\\b(?i:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.blendop.hlsl",
|
||||
"match": "\\b(?i:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.depthwritemask.hlsl",
|
||||
"match": "\\b(?i:ALL)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.comparisonfunc.hlsl",
|
||||
"match": "\\b(?i:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.stencilop.hlsl",
|
||||
"match": "\\b(?i:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.fillmode.hlsl",
|
||||
"match": "\\b(?i:WIREFRAME|SOLID)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.cullmode.hlsl",
|
||||
"match": "\\b(?i:NONE|FRONT|BACK)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.filter.hlsl",
|
||||
"match": "\\b(?i:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.textureaddressmode.hlsl",
|
||||
"match": "\\b(?i:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\\b"
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.hlsl",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.hlsl",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
13
lib/vscode/extensions/hlsl/test/colorize-fixtures/test.hlsl
Normal file
13
lib/vscode/extensions/hlsl/test/colorize-fixtures/test.hlsl
Normal file
@ -0,0 +1,13 @@
|
||||
struct VS_OUTPUT
|
||||
{
|
||||
float4 Position : SV_Position;
|
||||
};
|
||||
|
||||
VS_OUTPUT main(in float4 vPosition : POSITION)
|
||||
{
|
||||
VS_OUTPUT Output;
|
||||
|
||||
Output.Position = vPosition;
|
||||
|
||||
return Output;
|
||||
}
|
277
lib/vscode/extensions/hlsl/test/colorize-results/test_hlsl.json
Normal file
277
lib/vscode/extensions/hlsl/test/colorize-results/test_hlsl.json
Normal file
@ -0,0 +1,277 @@
|
||||
[
|
||||
{
|
||||
"c": "struct",
|
||||
"t": "source.hlsl storage.type.structured.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "storage.type: #569CD6",
|
||||
"light_plus": "storage.type: #0000FF",
|
||||
"dark_vs": "storage.type: #569CD6",
|
||||
"light_vs": "storage.type: #0000FF",
|
||||
"hc_black": "storage.type: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " VS_OUTPUT",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "{",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "float4",
|
||||
"t": "source.hlsl storage.type.basic.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "storage.type: #569CD6",
|
||||
"light_plus": "storage.type: #0000FF",
|
||||
"dark_vs": "storage.type: #569CD6",
|
||||
"light_vs": "storage.type: #0000FF",
|
||||
"hc_black": "storage.type: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " Position : ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "SV_Position",
|
||||
"t": "source.hlsl support.variable.semantic.sm4.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "support.variable: #9CDCFE",
|
||||
"light_plus": "support.variable: #001080",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "support.variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ";",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "};",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "VS_OUTPUT ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "main",
|
||||
"t": "source.hlsl support.function.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "support.function: #DCDCAA",
|
||||
"light_plus": "support.function: #795E26",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "support.function: #DCDCAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "(",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "in",
|
||||
"t": "source.hlsl storage.modifier.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "storage.modifier: #569CD6",
|
||||
"light_plus": "storage.modifier: #0000FF",
|
||||
"dark_vs": "storage.modifier: #569CD6",
|
||||
"light_vs": "storage.modifier: #0000FF",
|
||||
"hc_black": "storage.modifier: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "float4",
|
||||
"t": "source.hlsl storage.type.basic.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "storage.type: #569CD6",
|
||||
"light_plus": "storage.type: #0000FF",
|
||||
"dark_vs": "storage.type: #569CD6",
|
||||
"light_vs": "storage.type: #0000FF",
|
||||
"hc_black": "storage.type: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " vPosition : ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "POSITION",
|
||||
"t": "source.hlsl support.variable.semantic.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "support.variable: #9CDCFE",
|
||||
"light_plus": "support.variable: #001080",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "support.variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ")",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "{",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " VS_OUTPUT Output;",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " Output.Position = vPosition;",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "return",
|
||||
"t": "source.hlsl keyword.control.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "keyword.control: #C586C0",
|
||||
"light_plus": "keyword.control: #AF00DB",
|
||||
"dark_vs": "keyword.control: #569CD6",
|
||||
"light_vs": "keyword.control: #0000FF",
|
||||
"hc_black": "keyword.control: #C586C0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " Output;",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "}",
|
||||
"t": "source.hlsl",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user