Add load state to resource watcher.

This commit is contained in:
Ottermandias 2023-09-18 18:18:23 +02:00
parent 5506dcc3f3
commit 5067ab2bb2
3 changed files with 107 additions and 0 deletions

View file

@ -34,6 +34,15 @@ public unsafe struct ShaderPackageResourceHandle
public ShaderPackage* ShaderPackage;
}
public enum LoadState : byte
{
Success = 0x07,
Async = 0x03,
Failure = 0x09,
FailedSubResource = 0x0A,
None = 0xFF,
}
[StructLayout(LayoutKind.Explicit)]
public unsafe struct ResourceHandle
{
@ -99,6 +108,9 @@ public unsafe struct ResourceHandle
[FieldOffset(0x58)]
public int FileNameLength;
[FieldOffset(0xA9)]
public LoadState LoadState;
[FieldOffset(0xAC)]
public uint RefCount;