LoadOverrideAsync() public method

public LoadOverrideAsync ( [ data, Device device ) : System.Threading.Tasks.Task
data [
device Device
return System.Threading.Tasks.Task
コード例 #1
0
        private async Task <bool> LoadOverrideAsync(IDeviceContextHolder contextHolder, RenderableTexture texture, string textureName)
        {
            var overrided = await GetOverridedDataAsync(textureName);

            if (overrided == null)
            {
                return(false);
            }
            texture.LoadOverrideAsync(contextHolder, overrided).Forget();
            return(true);
        }
コード例 #2
0
ファイル: TexturesProvider.cs プロジェクト: gro-ove/actools
 private async void LoadOverrideAsync(RenderableTexture texture, string textureName, IOverridedTextureProvider provider,
         DeviceContextHolder contextHolder) {
     var overrided = await provider.GetOverridedDataAsync(textureName);
     if (overrided != null) {
         texture.LoadOverrideAsync(overrided, contextHolder.Device).Forget();
     }
 }