|
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.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax 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