private AtomicSafetyHandle GetSafetyHandle()
        {
            AtomicSafetyHandle result;

            AsyncGPUReadbackRequest.GetSafetyHandle_Injected(ref this, out result);
            return(result);
        }
Ejemplo n.º 2
0
        public static AsyncGPUReadbackRequest Request(Texture src, int mipIndex, TextureFormat dstFormat)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }
            AsyncGPUReadbackRequest result = AsyncGPUReadback.Request_Internal_Texture_2(src, mipIndex, dstFormat);

            result.CreateSafetyHandle();
            return(result);
        }
Ejemplo n.º 3
0
        public static AsyncGPUReadbackRequest Request(ComputeBuffer src)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }
            AsyncGPUReadbackRequest result = AsyncGPUReadback.Request_Internal_ComputeBuffer_1(src);

            result.CreateSafetyHandle();
            return(result);
        }
        static public AsyncGPUReadbackRequest Request(ComputeBuffer src, int size, int offset)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }

            AsyncGPUReadbackRequest request = Request_Internal_ComputeBuffer_2(src, size, offset);

            return(request);
        }
        static public AsyncGPUReadbackRequest Request(Texture src, int mipIndex = 0)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }

            AsyncGPUReadbackRequest request = Request_Internal_Texture_1(src, mipIndex);

            return(request);
        }
        static public AsyncGPUReadbackRequest Request(Texture src, int mipIndex, int x, int width, int y, int height, int z, int depth)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }

            AsyncGPUReadbackRequest request = Request_Internal_Texture_3(src, mipIndex, x, width, y, height, z, depth);

            return(request);
        }
Ejemplo n.º 7
0
        public static AsyncGPUReadbackRequest Request(Texture src, int mipIndex, int x, int width, int y, int height, int z, int depth, TextureFormat dstFormat)
        {
            if (src == null)
            {
                throw new ArgumentNullException();
            }
            AsyncGPUReadbackRequest result = AsyncGPUReadback.Request_Internal_Texture_4(src, mipIndex, x, width, y, height, z, depth, dstFormat);

            result.CreateSafetyHandle();
            return(result);
        }
 private int GetLayerDataSize()
 {
     return(AsyncGPUReadbackRequest.GetLayerDataSize_Injected(ref this));
 }
 private IntPtr GetDataRaw(int layer)
 {
     return(AsyncGPUReadbackRequest.GetDataRaw_Injected(ref this, layer));
 }
 private static extern void CreateSafetyHandle_Injected(ref AsyncGPUReadbackRequest _unity_self);
Ejemplo n.º 11
0
 private static extern void Request_Internal_Texture_4_Injected(Texture src, int mipIndex, int x, int width, int y, int height, int z, int depth, TextureFormat dstFormat, out AsyncGPUReadbackRequest ret);
Ejemplo n.º 12
0
 private static extern void Request_Internal_ComputeBuffer_2_Injected(ComputeBuffer src, int size, int offset, out AsyncGPUReadbackRequest ret);
 private bool HasError()
 {
     return(AsyncGPUReadbackRequest.HasError_Injected(ref this));
 }
 private bool IsDone()
 {
     return(AsyncGPUReadbackRequest.IsDone_Injected(ref this));
 }
 public void WaitForCompletion()
 {
     AsyncGPUReadbackRequest.WaitForCompletion_Injected(ref this);
 }
 public void Update()
 {
     AsyncGPUReadbackRequest.Update_Injected(ref this);
 }
 private static extern int GetLayerDataSize_Injected(ref AsyncGPUReadbackRequest _unity_self);
 private static extern IntPtr GetDataRaw_Injected(ref AsyncGPUReadbackRequest _unity_self, int layer);
 private static extern void GetSafetyHandle_Injected(ref AsyncGPUReadbackRequest _unity_self, out AtomicSafetyHandle ret);
Ejemplo n.º 20
0
 private static extern void Request_Internal_ComputeBuffer_1_Injected(ComputeBuffer buffer, out AsyncGPUReadbackRequest ret);
 private static extern void WaitForCompletion_Injected(ref AsyncGPUReadbackRequest _unity_self);
Ejemplo n.º 22
0
 private static extern void Request_Internal_Texture_2_Injected(Texture src, int mipIndex, TextureFormat dstFormat, out AsyncGPUReadbackRequest ret);
 private static extern bool IsDone_Injected(ref AsyncGPUReadbackRequest _unity_self);
 private int GetLayerCount()
 {
     return(AsyncGPUReadbackRequest.GetLayerCount_Injected(ref this));
 }
 private static extern bool HasError_Injected(ref AsyncGPUReadbackRequest _unity_self);
 internal void CreateSafetyHandle()
 {
     AsyncGPUReadbackRequest.CreateSafetyHandle_Injected(ref this);
 }
 private static extern void Update_Injected(ref AsyncGPUReadbackRequest _unity_self);