source: trunk/Utilities/DirectShowReferenceSource/Sample/Unity01/RenderingPlugin/Unity/IUnityGraphicsD3D12.h @ 937

Last change on this file since 937 was 638, checked in by roman, 8 years ago

Media source texture reader and Unity 3D sample project

File size: 1020 bytes
Line 
1#pragma once
2#include "IUnityInterface.h"
3#ifndef __cplusplus
4        #include <stdbool.h>
5#endif
6
7// Should only be used on the rendering thread unless noted otherwise.
8UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D12)
9{
10        ID3D12Device* (UNITY_INTERFACE_API * GetDevice)();
11        ID3D12CommandQueue* (UNITY_INTERFACE_API * GetCommandQueue)();
12
13        ID3D12Fence* (UNITY_INTERFACE_API * GetFrameFence)();
14        // Returns the value set on the frame fence once the current frame completes
15        UINT64 (UNITY_INTERFACE_API * GetNextFrameFenceValue)();
16
17        // Returns the state a resource will be in after the last command list is executed
18        bool (UNITY_INTERFACE_API * GetResourceState)(ID3D12Resource* resource, D3D12_RESOURCE_STATES* outState);
19        // Specifies the state a resource will be in after a plugin command list with resource barriers is executed
20        void (UNITY_INTERFACE_API * SetResourceState)(ID3D12Resource* resource, D3D12_RESOURCE_STATES state);
21};
22UNITY_REGISTER_INTERFACE_GUID(0xEF4CEC88A45F4C4CULL,0xBD295B6F2A38D9DEULL,IUnityGraphicsD3D12)
Note: See TracBrowser for help on using the repository browser.