diff --git a/src/DirectX12GameEngine.Shaders/Renderer/Models/ShaderInfo.cs b/src/DirectX12GameEngine.Shaders/Renderer/Models/ShaderInfo.cs
index fbc04993..64ba1e8d 100644
--- a/src/DirectX12GameEngine.Shaders/Renderer/Models/ShaderInfo.cs
+++ b/src/DirectX12GameEngine.Shaders/Renderer/Models/ShaderInfo.cs
@@ -13,7 +13,7 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models
///
/// Gets the list of fields being present in the current shader
///
- public List FieldsList { get; } = new List();
+ public IReadOnlyList FieldsList { get; set; }
///
/// Gets or sets the number of threads in the X group
diff --git a/src/DirectX12GameEngine.Shaders/ShaderLoader.cs b/src/DirectX12GameEngine.Shaders/ShaderLoader.cs
index e9bf8c98..27d44174 100644
--- a/src/DirectX12GameEngine.Shaders/ShaderLoader.cs
+++ b/src/DirectX12GameEngine.Shaders/ShaderLoader.cs
@@ -11,6 +11,8 @@ using DirectX12GameEngine.Shaders.Renderer.Models.Fields;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
+#pragma warning disable CS8618 // Non-nullable field is uninitialized
+
namespace DirectX12GameEngine.Shaders
{
///
@@ -60,7 +62,7 @@ namespace DirectX12GameEngine.Shaders
///
/// Gets the name of the variable used as input for the shader method
///
- public string ThreadIdsIdentifierName { get; private set; }
+ public string ThreadsIdsVariableName { get; private set; }
///
/// Gets the generated source code for the method in the current shader
@@ -130,7 +132,7 @@ namespace DirectX12GameEngine.Shaders
// Get the thread ids identifier name and shader method body
ConstructorDeclarationSyntax methodNode = root.ChildNodes().OfType().First();
- ThreadIdsIdentifierName = methodNode.ParameterList.Parameters.First().Identifier.Text;
+ ThreadsIdsVariableName = methodNode.ParameterList.Parameters.First().Identifier.Text;
MethodBody = methodNode.Body.ToFullString();
// Additional preprocessing