Beispiel #1
0
        public static H1GpuResourceSingle CreateGpuResource(H1HeapType heapType, H1GpuResourceDesc resourceDesc, H1ResourceStates defaultUsage)
        {
            H1GpuResourceSingle newRes = new H1GpuResourceSingle();

            if (!newRes.CreateResource(heapType, resourceDesc, defaultUsage))
            {
                newRes = null; // nullify newly created resource
            }
            return(newRes);
        }
Beispiel #2
0
        public static H1GpuResourceSingle CreateEmptyGpuResource()
        {
            H1GpuResourceSingle newEmptyRes = new H1GpuResourceSingle();

            return(newEmptyRes);
        }