forked from StrafesNET/roblox-bot-player
write comment
This commit is contained in:
@@ -4,6 +4,8 @@ use strafesnet_roblox_bot_player::{bot,graphics,head};
|
||||
use strafesnet_graphics::setup;
|
||||
use strafesnet_common::session::Time as SessionTime;
|
||||
|
||||
// Hack to keep the code compiling,
|
||||
// SurfaceTarget::Canvas is not available in IDE for whatever reason.
|
||||
struct ToSurfaceTarget(web_sys::HtmlCanvasElement);
|
||||
impl From<ToSurfaceTarget> for wgpu::SurfaceTarget<'static>{
|
||||
fn from(ToSurfaceTarget(canvas):ToSurfaceTarget)->Self{
|
||||
|
||||
Reference in New Issue
Block a user