Texture inheritance for materials, also script access

This commit is contained in:
Simon Lübeß
2025-03-01 00:03:38 +01:00
parent 824c19c0b2
commit b5088329f5
13 changed files with 470 additions and 82 deletions
@@ -440,14 +440,14 @@ namespace GlitchyEngine.Renderer
if (shaderStage.HasFlag(.Vertex))
{
_vsShaderResources[slot] = textureBinding._nativeShaderResourceView;
_vsSamplers[slot] = textureBinding._nativeSamplerState;
_vsShaderResources[slot] = textureBinding?._nativeShaderResourceView;
_vsSamplers[slot] = textureBinding?._nativeSamplerState;
}
if (shaderStage.HasFlag(.Pixel))
{
_psShaderResources[slot] = textureBinding._nativeShaderResourceView;
_psSamplers[slot] = textureBinding._nativeSamplerState;
_psShaderResources[slot] = textureBinding?._nativeShaderResourceView;
_psSamplers[slot] = textureBinding?._nativeSamplerState;
}
}