Skip to content

Commit

Permalink
Add origin trial token
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Apr 14, 2023
1 parent 693600b commit 606cec2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/SampleLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const SampleLayout: React.FunctionComponent<
React.PropsWithChildren<{
name: string;
description: string;
originTrial?: string;
filename: string;
gui?: boolean;
init: SampleInit;
Expand Down Expand Up @@ -155,6 +156,7 @@ const SampleLayout: React.FunctionComponent<
/>
<title>{`${props.name} - WebGPU Samples`}</title>
<meta name="description" content={props.description} />
<meta httpEquiv="origin-trial" content={props.originTrial} />
</Head>
<div>
<h1>{props.name}</h1>
Expand Down
9 changes: 8 additions & 1 deletion src/sample/videoUploadingWebCodecs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,14 @@ const init: SampleInit = async ({ canvas, pageState }) => {
const VideoUploadingWebCodecs: () => JSX.Element = () =>
makeSample({
name: 'Video Uploading with WebCodecs (Experimental)',
description: 'This example shows how to upload VideoFrame to WebGPU.',
description: `This example shows how to upload a WebCodecs VideoFrame to WebGPU.
Support for using a VideoFrame as the source for a GPUExternalTexture requires
running Chrome with the "WebGPU Developer Features" flag or the WebGPU WebCodecs
integration origin trial.
See https://developer.chrome.com/origintrials/#/view_trial/1705738358866575361
`,
originTrial:
'Auo9JMDbdn/Jg1pd8liB9Ofp1OLzi9mecxjBBfjv/3f8O8775CXgcTobX4t6KYxMC1wnO4Z7MWArPSptGtkD2woAAABZeyJvcmlnaW4iOiJodHRwczovL3dlYmdwdS5naXRodWIuaW86NDQzIiwiZmVhdHVyZSI6IldlYkdQVVdlYkNvZGVjcyIsImV4cGlyeSI6MTcwMTk5MzU5OX0=',
init,
sources: [
{
Expand Down

0 comments on commit 606cec2

Please sign in to comment.