Click or drag to resize
AB4D logo

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

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

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

Parameters

vertexShaderResourceName  String
vertex shader resource name
geometryShaderResourceName  String
geometry shader resource name
pixelShaderResourceName  String
pixel shader resource name
vertexLayoutDesc  InputElement
vertex layout description as array of InputElements
vertexShaderSharedResource  SharedDXResourceWrapperVertexShader
out SharedDXResourceWrapper with VertexShader
geometryShaderSharedResource  SharedDXResourceWrapperGeometryShader
out SharedDXResourceWrapper with GeometryShader
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