Click or drag to resize
AB4D logo

DirectionalLightShaderSetCustomPerFrameConstantBuffers Method

SetCustomPerFrameConstantBuffers sets custom perFrameCameraConstantsBuffer and perFrameLightsConstantBuffer. Note that the constant buffers need to be exactly the same as the DirectionalLightShader expects.

Namespace: Ab3d.DirectX.Shaders
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetCustomPerFrameConstantBuffers(
	Buffer perFrameCameraConstantsBuffer,
	Buffer perFrameDirectionalLightsConstantsBuffer = null
)

Parameters

perFrameCameraConstantsBuffer  Buffer
perFrameCameraConstantsBuffer or null to use constant buffer from this shader
perFrameDirectionalLightsConstantsBuffer  Buffer  (Optional)
perFrameDirectionalLightsConstantsBuffer or null to use constant buffer from this shader
See Also