← 返回首页
GPUCompilationMessage: message プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

GPUCompilationMessage: message プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。

GPUCompilationMessage インターフェイスの読み取り専用プロパティ message は、人間向けのメッセージテキストを表す文字列です。

In this article

文字列です。

js
// ... const shaderModule = device.createShaderModule({ code: shaders, }); const shaderInfo = await shaderModule.getCompilationInfo(); const firstMessage = shaderInfo.messages[0]; console.log(firstMessage.message); // ... }

より詳細な例は、メインの GPUCompilationInfo のページを参照してください。

仕様書

Specification
WebGPU
# dom-gpucompilationmessage-message

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報