dxcapi.h header annotations affecting language projections.

オープン 初心者向け
#9,086 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
compilers

調査の方向性

まず dxcapi.h の DxcCreateInstance、DxcCreateInstance2、IDxcLinker、IDxcResult の宣言を確認してください。issue で求められている COM 規約と照らし合わせて、パラメーター注釈と呼び出し規約を確認します。列挙された宣言で指定の注釈と STDMETHODCALLTYPE が使われていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description
A couple of issues in dxcapi.h affect generated metadata for language projections.

Functions/methods return COM interface pointers, but their return parameters are annotated as _Out_ and should be _COM_Outptr_:
DxcCreateInstance/DxcCreateInstance2 - parameter ppv
IDxcCompiler3 - methods Compile and Disassemble parameter ppResult
IDxcContainerReflection - method GetPartReflection parameter ppvObject

IDxcLinker and IDxcResult - methods (RegisterLibrary, GetNumOutputs, GetOutputByIndex, PrimaryOutput) are not marked as STDMETHODCALLTYPE. COM interface methods must use stdcall. This makes no difference on x64, but on x86 they use thiscall.

related: microsoft/windows-rs#5279

主要言語
C++
スター
3.7k
フォーク
914
平均マージ
2日 20時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/DirectXShaderCompiler のほかの issue

microsoft/DirectXShaderCompiler の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。