Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Material System and Shader Functions

Demez edited this page Mar 17, 2019 · 2 revisions

Normal Functions

Function Returns Purpose
HasDestAlphaBuffer() Boolean
HasStencilBuffer() Boolean
StencilBufferBits() Integer
GetFrameBufferColorDepth() Integer
GetSamplerCount() Integer
HasSetDeviceGammaRamp() Boolean
SupportsCompressedTextures() Boolean
SupportsCompressedVertices() Enumeration
SupportsNormalMapCompression() Boolean
MaximumAnisotropicLevel() Integer
MaxTextureWidth() Integer
MaxTextureHeight() Integer
MaxTextureDepth() Integer
TextureMemorySize() Integer
SupportsOverbright() Boolean
SupportsCubeMaps() Boolean
SupportsMipmappedCubemaps() Boolean
SupportsNonPow2Textures() Boolean
GetTextureStageCount() Integer
NumVertexShaderConstants() Integer
NumBooleanVertexShaderConstants() Integer
NumIntegerVertexShaderConstants() Integer
NumPixelShaderConstants() Integer
MaxNumLights() Integer
SupportsHardwareLighting() Void
MaxBlendMatrices() Integer
MaxBlendMatrixIndices() Integer
MaxTextureAspectRatio() Integer
MaxVertexShaderBlendMatrices() Integer
MaxUserClipPlanes() Integer
UseFastClipping() Boolean
UseFastZReject() Boolean
PreferReducedFillrate() Boolean
GetShaderDLLName() Boolean
ReadPixelsFromFrontBuffer() Boolean
PreferDynamicTextures() Boolean
SupportsHDR() Boolean
GetHDRType() Enumeration
GetHardwareHDRType() Enumeration
HasProjectedBumpEnv() Boolean
SupportsSpheremapping() Boolean
NeedsAAClamp() Boolean
HasFastZReject() Boolean
NeedsATICentroidHack() Boolean
SupportsColorOnSecondStream() Boolean
SupportsStaticPlusDynamicLighting() Boolean
SupportsStreamOffset() Boolean
GetMaxDXSupportLevel() 95
SpecifiesFogColorInLinearSpace() Boolean
SupportsSRGB() Boolean
IsAAEnabled() Boolean
GetVertexTextureCount() Integer
GetMaxVertexTextureDimension() Integer
MaxViewports() Integer (1)
NeedsShaderSRGBConversion() Integer
UsesSRGBCorrectBlending() Boolean
HasFastVertexTextures() Boolean
MaxHWMorphBatchCount() Integer
IsDX10Card() Integer
GetHDREnabled( void ) Boolean
SupportsBorderColor( void ) Boolean
SupportsFetch4( void ) Boolean
GetShadowFilterMode() Integer Return the Shadow Filter Mode being used by the flashlight [DISABLED]
GetShadowDepthBias() Integer Return the Depth Bias of the Shadow Map
GetShadowSlopeScaleDepthBias() Integer Return the Slope Scale Depth Bias of the Shadow Map

Functions with Inputs

Function Returns Purpose
OverrideStreamOffsetSupport( bool bOverrideEnabled, bool bEnableSupport )
SetHDREnabled( bool bEnable ) Turns on HDR
SupportsHDRMode( HDRType_t nMode ) Integer

Obsolete or Removed

Function Returns Purpose
GetDXSupportLevel()
SupportsShaderModel_3_0()
SupportsPixelShaders_2_b()
ActuallySupportsPixelShaders_2_b()
SupportsPixelShaders_2_0()
SupportsPixelShaders_1_4()
SupportsVertexShaders_2_0()

Clone this wiki locally