예제 #1
0
        async Task LoadResourceFun()
        {
            await Task.WhenAll(Brush.LoadStaticResourcesAsync(),
                               BlendMode.LoadStaticResourcesAsync());

            default2DVertexShader = await VertexShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\default2DVertexShader.cso");

            default2DPixelShader = await PixelShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\default2DPixelShader.cso");

            PS2DTex1 = await PixelShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\PS2DTex1.cso");

            Texture2TT = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\Texture2TT.cso");

            TextureEmptyTest = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\TextureEmptyTest.cso");

            TT2Texture = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\TT2Texture.cso");

            TTPartCopy = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\TTPartCopy.cso");

            TTReplace = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\TTReplace.cso");

            TexturePartClear = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\TexturePartClear.cso");

            CExport = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\CExport.cso");

            CImport = await ComputeShader.LoadAsync(DCRenderView.GetDevice(), "DirectCanvasRenderEngine\\CImport.cso");
        }