Template:Shader Semantics: Difference between revisions
Jump to navigation
Jump to search
m (Moved field to match the "section") |
m (Changed vars to PascalCase) |
||
Line 1: | Line 1: | ||
HLSL fields are '''case-insensitive''' | |||
<syntaxhighlight lang="hlsl"> | <syntaxhighlight lang="hlsl"> | ||
int | int zEnable; | ||
int | int FillMode; | ||
int | int ShadeMode; | ||
int | int zWriteEnable; | ||
int | int LastPixel; | ||
int | int SrcBlend; | ||
int | int DestBlend; | ||
int | int CullMode; | ||
int | int zFunc; | ||
int | int DitherEnable; | ||
int | int SpecularEnable; | ||
int | int AlphaRef; | ||
int | int AlphaFunc; | ||
int | int AlphaBlendEnable; | ||
int | int AlphaTestEnable; | ||
int | int FogEnable; | ||
int | float4 FogColor; // float4 or dword | ||
float4 | int FogTableMode; | ||
int | float FogStart; // float or int | ||
int | float FogEnd; // float or int | ||
int | float FogDensity; // float or int | ||
int | int RangeFogEnable; | ||
int | |||
int | int StencilEnable; | ||
int | int StencilFAIL; | ||
int | int StencilZFail; | ||
int | int StencilPass; | ||
int | int StencilFunc; | ||
float | int StencilRef; | ||
float | int StencilMask; | ||
int | int StencilWriteMask; | ||
int | |||
float | float4 TextureFactor; // float4 or dword | ||
float | |||
float | int Wrap0; | ||
int | int Wrap1; | ||
int | int Wrap2; | ||
int | int Wrap3; | ||
int | int Wrap4; | ||
int Wrap5; | |||
int | int Wrap6; | ||
int | int Wrap7; | ||
float | int Wrap8; | ||
int | int Wrap9; | ||
int | int Wrap10; | ||
int | int Wrap11; | ||
int | int Wrap12; | ||
int | int Wrap13; | ||
int | int Wrap14; | ||
int | int Wrap15; | ||
int | |||
int | int Clipping; | ||
int | int Lighting; | ||
int | float4 Ambient; // float4 or dword | ||
int | int FogVertexMode; | ||
int | int ColorVertex; | ||
int | int LocalViewer; | ||
int | int NormalizeNormals; | ||
int | int DiffuseMaterialSource; | ||
int | int SpecularMaterialSource; | ||
int | int AmbientMaterialSource; | ||
int | int EmissiveMaterialSource; | ||
int | |||
int | int VertexBlend; | ||
float4 | int ClipPlaneEnable; | ||
int | float PointSize; // float or int | ||
int | float PointSize_MIN; // float or int | ||
int | float PointSize_MAX; // float or int | ||
int | int PointSPRITEENABLE; | ||
int | int PointScaleEnable; | ||
int | float PointScale_A; // float or int | ||
int | float PointScale_B; // float or int | ||
int | float PointScale_C; // float or int | ||
int | |||
int | int MultisampleAntiAlias; | ||
int | int MultisampleMask; | ||
int | int PatchedGestyle; | ||
int | int DebugMonitorToken; | ||
int | int IndexedVertexBlendEnable; | ||
int | int ColorWriteEnable; | ||
int | float TweenFactor; // float or int | ||
int | int BlendOp; | ||
int | int PositionDegree; | ||
int | int NormalDegree; | ||
int | int ScissorTestEnable; | ||
int | int SlopeScaleDepthBias; | ||
int | int AntiAliasedLineEnable; | ||
int | |||
int | int EnableAdaptiveTessellation; | ||
int | int MinTessellationLevel; | ||
int | int MaxTessellationLevel; | ||
int | int AdaptiveTess_X; | ||
float4 | int AdaptiveTess_Y; | ||
int | int AdaptiveTess_Z; | ||
int | int AdaptiveTess_W; | ||
int | |||
int | int TwoSidedStencilMode; | ||
int | int CCW_StencilFail; | ||
int | int CCW_StencilZFail; | ||
int | int CCW_StencilPass; | ||
int | int CCW_StencilFunc; | ||
int | |||
int ColorWriteEnable1; | |||
int ColorWriteEnable2; | |||
int ColorWriteEnable3; | |||
float4 BlendFactor; // float4 or dword | |||
int SRGBWriteEnable; | |||
int DepthBias; | |||
int SeparateAlphaBlendEnable; | |||
int SrcBlendAlpha; | |||
int DestBlendAlpha; | |||
int BlendOpAlpha; | |||
int ColorOp; | |||
int ColorArg0; | |||
int ColorArg1; | |||
int ColorArg2; | |||
int AlphaOp; | |||
int AlphaArg0; | |||
int AlphaArg1; | |||
int AlphaArg2; | |||
int BumpEnvMat00; | |||
int BumpEnvMat01; | |||
int BumpEnvMat10; | |||
int BumpEnvMat11; | |||
int TexCoordIndex; | |||
int BumpEnvLScale; | |||
int BumpEnvLOffset; | |||
int TextureTransformFlags; | |||
int ResultArg; | |||
int Constant; | |||
int AddressU; | |||
int AddressV; | |||
int AddressW; | |||
float4 BorderColor; // float4 or dword | |||
int MagFilter; | |||
int MinFilter; | |||
int MipFilter; | |||
int MipMapLODBias; | |||
int MaxMipLevel; | |||
int MaxAnisotropy; | |||
int SRGBTexture; | |||
int ElementIndex; | |||
int DMapOffset; | |||
float4 Diffuse; | float4 Diffuse; | ||
float4 Ambient; | float4 Ambient; | ||
Line 141: | Line 154: | ||
float4 Emissive; | float4 Emissive; | ||
float Power; | float Power; | ||
float4x4 | float4x4 View; | ||
float4x4 | float4x4 Projection; | ||
float4x4 | |||
float4x4 | float4x4 Texture0; | ||
float4x4 | float4x4 Texture1; | ||
float4x4 | float4x4 Texture2; | ||
float4x4 | float4x4 Texture3; | ||
float4x4 | float4x4 Texture4; | ||
float4x4 | float4x4 Texture5; | ||
float4x4 | float4x4 Texture6; | ||
float4x4 | float4x4 Texture7; | ||
float4x4 | |||
float4x4 | float4x4 World; | ||
float4x4 | float4x4 World1; | ||
float4x4 World2; | |||
float4x4 World3; | |||
int Type; | int Type; | ||
float4 Diffuse; | float4 Diffuse; |
Latest revision as of 17:54, 8 April 2023
HLSL fields are case-insensitive
int zEnable; int FillMode; int ShadeMode; int zWriteEnable; int LastPixel; int SrcBlend; int DestBlend; int CullMode; int zFunc; int DitherEnable; int SpecularEnable; int AlphaRef; int AlphaFunc; int AlphaBlendEnable; int AlphaTestEnable; int FogEnable; float4 FogColor; // float4 or dword int FogTableMode; float FogStart; // float or int float FogEnd; // float or int float FogDensity; // float or int int RangeFogEnable; int StencilEnable; int StencilFAIL; int StencilZFail; int StencilPass; int StencilFunc; int StencilRef; int StencilMask; int StencilWriteMask; float4 TextureFactor; // float4 or dword int Wrap0; int Wrap1; int Wrap2; int Wrap3; int Wrap4; int Wrap5; int Wrap6; int Wrap7; int Wrap8; int Wrap9; int Wrap10; int Wrap11; int Wrap12; int Wrap13; int Wrap14; int Wrap15; int Clipping; int Lighting; float4 Ambient; // float4 or dword int FogVertexMode; int ColorVertex; int LocalViewer; int NormalizeNormals; int DiffuseMaterialSource; int SpecularMaterialSource; int AmbientMaterialSource; int EmissiveMaterialSource; int VertexBlend; int ClipPlaneEnable; float PointSize; // float or int float PointSize_MIN; // float or int float PointSize_MAX; // float or int int PointSPRITEENABLE; int PointScaleEnable; float PointScale_A; // float or int float PointScale_B; // float or int float PointScale_C; // float or int int MultisampleAntiAlias; int MultisampleMask; int PatchedGestyle; int DebugMonitorToken; int IndexedVertexBlendEnable; int ColorWriteEnable; float TweenFactor; // float or int int BlendOp; int PositionDegree; int NormalDegree; int ScissorTestEnable; int SlopeScaleDepthBias; int AntiAliasedLineEnable; int EnableAdaptiveTessellation; int MinTessellationLevel; int MaxTessellationLevel; int AdaptiveTess_X; int AdaptiveTess_Y; int AdaptiveTess_Z; int AdaptiveTess_W; int TwoSidedStencilMode; int CCW_StencilFail; int CCW_StencilZFail; int CCW_StencilPass; int CCW_StencilFunc; int ColorWriteEnable1; int ColorWriteEnable2; int ColorWriteEnable3; float4 BlendFactor; // float4 or dword int SRGBWriteEnable; int DepthBias; int SeparateAlphaBlendEnable; int SrcBlendAlpha; int DestBlendAlpha; int BlendOpAlpha; int ColorOp; int ColorArg0; int ColorArg1; int ColorArg2; int AlphaOp; int AlphaArg0; int AlphaArg1; int AlphaArg2; int BumpEnvMat00; int BumpEnvMat01; int BumpEnvMat10; int BumpEnvMat11; int TexCoordIndex; int BumpEnvLScale; int BumpEnvLOffset; int TextureTransformFlags; int ResultArg; int Constant; int AddressU; int AddressV; int AddressW; float4 BorderColor; // float4 or dword int MagFilter; int MinFilter; int MipFilter; int MipMapLODBias; int MaxMipLevel; int MaxAnisotropy; int SRGBTexture; int ElementIndex; int DMapOffset; float4 Diffuse; float4 Ambient; float4 Specular; float4 Emissive; float Power; float4x4 View; float4x4 Projection; float4x4 Texture0; float4x4 Texture1; float4x4 Texture2; float4x4 Texture3; float4x4 Texture4; float4x4 Texture5; float4x4 Texture6; float4x4 Texture7; float4x4 World; float4x4 World1; float4x4 World2; float4x4 World3; int Type; float4 Diffuse; float4 Specular; float4 Ambient; float3 Position; float3 Direction; float Range; float Falloff; float Attenuation0; float Attenuation1; float Attenuation2; float Theta; float Phi; int Enable; texture Texture; int DeviceType; int AdapterOrdinal; int Caps; int Caps2; int Caps3; int PresentationIntervals; int CursorCaps; int DevCaps; int PrimitiveMiscCaps; int RasterCaps; int ZCmpCaps; int SrcBlendCaps; int DestBlendCaps; int AlphaCmpCaps; int ShadeCaps; int TextureCaps; int TextureFilterCaps; int CubeTextureFilterCaps; int VolumeTextureFilterCaps; int TextureAddressCaps; int VolumeTextureAddressCaps; int LineCaps; int MaxTextureWidth; int MaxTextureHeight; int MaxVolumeExtent; int MaxTextureRepeat; int MaxTextureAspectRatio; int MaxAnisotropy; float MaxVertexW; float GuardBandLeft; float GuardBandTop; float GuardBandRight; float GuardBandBottom; float ExtentsAdjust; int StencilCaps; int FVFCaps; int TextureOpCaps; int MaxTextureBlendStages; int MaxSimultaneousTextures; int VertexProcessingCaps; int MaxActiveLights; int MaxUserClipPlanes; int MaxVertexBlendMatrices; int MaxVertexBlendMatrixIndex; float MaxPointSize; int MaxPrimitiveCount; int MaxVertexIndex; int MaxStreams; int MaxStreamStride; int VertexShaderVersion; int MaxVertexShaderConst; int PixelShaderVersion; float PixelShader1xMaxValue; int DevCaps2; float MaxNpatchTessellationLevel; int Reserved5; int MasterAdapterOrdinal; int AdapterOrdinalInGroup; int NumberOfAdaptersInGroup; int DeclTypes; int NumSimultaneousRTs; int StretchRectFilterCaps; int VS20Caps.Caps; int VS20Caps.DynamicFlowControlDepth; int VS20Caps.NumTemps; int VS20Caps.StaticFlowControlDepth; int PS20Caps.Caps; int PS20Caps.DynamicFlowControlDepth; int PS20Caps.NumTemps; int PS20Caps.StaticFlowControlDepth; int PS20Caps.NumInstructionSlots; int VertexTextureFilterCaps; int MaxVShaderInstructionsExecuted; int MaxPShaderInstructionsExecuted; int MaxVertexShader30InstructionSlots; int MaxPixelShader30InstructionSlots; int Position; int PositionT; int Normal; int Color0; int Color1; int TexCoord0; int TexCoord1;