mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-15 08:06:19 +00:00
Start wiring up wgpu+winit
This commit is contained in:
@@ -81,7 +81,7 @@ static bool g_RippleMapSetup = false;
|
||||
std::array<std::array<u8, 64>, 64> CFluidPlaneManager::RippleValues{};
|
||||
std::array<u8, 64> CFluidPlaneManager::RippleMins{};
|
||||
std::array<u8, 64> CFluidPlaneManager::RippleMaxs{};
|
||||
boo::ObjToken<boo::ITextureS> CFluidPlaneManager::RippleMapTex;
|
||||
std::shared_ptr<aurora::TextureHandle> CFluidPlaneManager::RippleMapTex;
|
||||
|
||||
void CFluidPlaneManager::SetupRippleMap() {
|
||||
if (g_RippleMapSetup) {
|
||||
@@ -135,11 +135,9 @@ void CFluidPlaneManager::SetupRippleMap() {
|
||||
curX += (1.f / 63.f);
|
||||
}
|
||||
|
||||
CGraphics::CommitResources([](boo::IGraphicsDataFactory::Context& ctx) {
|
||||
RippleMapTex = ctx.newStaticTexture(64, 64, 1, boo::TextureFormat::I8, boo::TextureClampMode::ClampToBlack,
|
||||
RippleValues.data(), 64 * 64);
|
||||
return true;
|
||||
} BooTrace);
|
||||
RippleMapTex =
|
||||
aurora::new_static_texture_2d(64, 64, 1, aurora::shaders::TextureFormat::R8,
|
||||
{reinterpret_cast<const uint8_t*>(RippleValues.data()), 64 * 64}, "Ripple Map");
|
||||
}
|
||||
|
||||
} // namespace metaforce
|
||||
|
||||
Reference in New Issue
Block a user