Click or drag to resize
AB4D logo

SuperShaderSetCustomPerFrameConstantBuffers Method

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

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

Parameters

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