Click or drag to resize
AB4D logo

RenderTextureRenderingStepRenderTexture(RenderingContext, ShaderResourceView, ViewportF, Vector4, Vector4, BlendState, DepthStencilState) Method

RenderTexture static method rendered the specified sourceShaderResourceView to the viewport and on the current render targets in the renderingContext. This method also allows changing the colors in the source texture with using offsets and factors parameters.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public static void RenderTexture(
	RenderingContext renderingContext,
	ShaderResourceView sourceShaderResourceView,
	ViewportF viewport,
	Vector4 offsets,
	Vector4 factors,
	BlendState customBlendState = null,
	DepthStencilState customDepthStencilState = null
)

Parameters

renderingContext  RenderingContext
RenderingContext
sourceShaderResourceView  ShaderResourceView
ShaderResourceView that will be rendered
viewport  ViewportF
the target position where the texture will be rendered (in NDC space - (0, 0, 1, 1) represents the whole scree)
offsets  Vector4
specifies RGBA values that are added to each color displayed with this post process
factors  Vector4
specifies RGBA values that are multiplied with each color
customBlendState  BlendState  (Optional)
when set (not null) it provides a BlendState that is used to render a texture
customDepthStencilState  DepthStencilState  (Optional)
when set (not null) it provides a DepthStencilState that is used to render a texture
See Also