Click or drag to resize
AB4D logo

StandardEffectSetCustomPerFrameConstantBuffers Method

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

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetCustomPerFrameConstantBuffers(
	Buffer perFrameCameraConstantsBuffer,
	Buffer perFrameLightsConstantBuffer
)

Parameters

perFrameCameraConstantsBuffer  Buffer
perFrameCameraConstantsBuffer or null to use constant buffer from this shader (when null, then the currently used perFrameCameraConstantsBuffer is not changed)
perFrameLightsConstantBuffer  Buffer
perFrameLightsConstantBuffer or null to use constant buffer from this shader (when null, then the currently used perFrameLightsConstantBuffer is not changed)
See Also