public void PrepareLocalStorage(VoxelStorageContext context, IVoxelStorage storage) { StorageMethod.PrepareLocalStorage(context, storage, 4, 1); Graphics.PixelFormat format = Graphics.PixelFormat.R16G16B16A16_Float; switch (StorageFormat) { case StorageFormats.RGBA8: format = Graphics.PixelFormat.R8G8B8A8_UNorm; break; case StorageFormats.R10G10B10A2: format = Graphics.PixelFormat.R10G10B10A2_UNorm; break; case StorageFormats.RGBA16F: format = Graphics.PixelFormat.R16G16B16A16_Float; break; } storage.UpdateTexture(context, ref IsotropicTex, format, 1); }
virtual public int PrepareLocalStorage(VoxelStorageContext context, IVoxelStorage storage) { return(StorageMethod.PrepareLocalStorage(context, storage, 4, LayoutCount)); }