-
Notifications
You must be signed in to change notification settings - Fork 0
What is ShaderInformation (.sinfo) files?
Samet edited this page Sep 5, 2023
·
3 revisions
"ShaderInformation" allows the game engine to use a shader that the user writes,** It's like a simple header file, it allows you to define what the InputLayout will be, its name, type (Vertex, Pixel, Hull, Tesellation, Geometry or Compute), etc., and the game engine compiles the shader based on this information.**
Example (MyCoolVertexShader.sinfo);
[Shader]
DisplayName = MyCoolShaderVS
ShaderType = Vertex
InputLayout = VertexPNT
EntryPoint = vsmain
HLSLFile = MyCoolVertexShader.hlsl
CSOName= MyCoolVertexShader.cso