Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable webgpu in browser #3870

Open
1 task done
CrosRoad95 opened this issue Nov 24, 2024 · 1 comment
Open
1 task done

Enable webgpu in browser #3870

CrosRoad95 opened this issue Nov 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@CrosRoad95
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Would be nice to have it, right now even with enabled gpu rendering you get error:Image

https://www.orillusion.com/en/example/base/AddRemove.html

Describe the solution you'd like

/

Describe alternatives you've considered

/

Additional context

local screenWidth, screenHeight = 800,600

--Let's create a new browser in remote mode.
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
	
--Function to render the browser.
function webBrowserRender()
	--Render the browser on the full size of the screen.
	dxDrawImage(200, 200, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

--The event onClientBrowserCreated will be triggered, after the browser has been initialized.
--After this event has been triggered, we will be able to load our URL and start drawing.
addEventHandler("onClientBrowserCreated", webBrowser, 
	function()
		--After the browser has been initialized, we can load www.youtube.com
		loadBrowserURL(webBrowser, "https://www.orillusion.com/en/example/base/AddRemove.html")
		--Now we can start to render the browser.
		addEventHandler("onClientRender", root, webBrowserRender)
	end
)

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@CrosRoad95 CrosRoad95 added the enhancement New feature or request label Nov 24, 2024
@Lpsd
Copy link
Member

Lpsd commented Nov 25, 2024

Does CEF actually support WebGPU out of the box for use in a 32-bit application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants