Click or drag to resize
AB4D logo

EffectsManagerGetShaders(String, String, InputElement, SharedDXResourceWrapperVertexShader, SharedDXResourceWrapperPixelShader, SharedDXResourceWrapperInputLayout, Boolean) Method

GetShaders loads vertex shader, pixel shader and creates an InputLayout from the specified resource names

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public void GetShaders(
	string vertexShaderResourceName,
	string pixelShaderResourceName,
	InputElement[] vertexLayoutDesc,
	out SharedDXResourceWrapper<VertexShader> vertexShaderSharedResource,
	out SharedDXResourceWrapper<PixelShader> pixelShaderSharedResource,
	out SharedDXResourceWrapper<InputLayout> inputLayoutSharedResource,
	bool throwExceptionIfShadersNotFound = true
)

Parameters

vertexShaderResourceName  String
vertex shader resource name
pixelShaderResourceName  String
pixel shader resource name
vertexLayoutDesc  InputElement
vertex layout description as array of InputElements
vertexShaderSharedResource  SharedDXResourceWrapperVertexShader
out SharedDXResourceWrapper with VertexShader
pixelShaderSharedResource  SharedDXResourceWrapperPixelShader
out SharedDXResourceWrapper with PixelShader
inputLayoutSharedResource  SharedDXResourceWrapperInputLayout
out SharedDXResourceWrapper with InputLayout
throwExceptionIfShadersNotFound  Boolean  (Optional)
if true and exception is thrown if shader is not found; else null is returned
See Also