mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 14:57:50 +01:00
Add load state to resource watcher.
This commit is contained in:
parent
5506dcc3f3
commit
5067ab2bb2
3 changed files with 107 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue