ホーム › Graphics.Direct3D12 › D3D12_FEATURE_DATA_D3D12_OPTIONS9
D3D12_FEATURE_DATA_D3D12_OPTIONS9
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| MeshShaderPipelineStatsSupported | BOOL | 4 | +0 | +0 | メッシュシェーダーのパイプライン統計に対応するか。 |
| MeshShaderSupportsFullRangeRenderTargetArrayIndex | BOOL | 4 | +4 | +4 | メッシュシェーダーで全範囲のRT配列インデックスに対応するか。 |
| AtomicInt64OnTypedResourceSupported | BOOL | 4 | +8 | +8 | 型付きリソース上の64ビット整数アトミックに対応するか。 |
| AtomicInt64OnGroupSharedSupported | BOOL | 4 | +12 | +12 | グループ共有メモリ上の64ビット整数アトミックに対応するか。 |
| DerivativesInMeshAndAmplificationShadersSupported | BOOL | 4 | +16 | +16 | メッシュ/増幅シェーダーでの微分演算に対応するか。 |
| WaveMMATier | D3D12_WAVE_MMA_TIER | 4 | +20 | +20 | ウェーブ行列演算(WaveMMA)のサポート階層。 |
各言語での定義
#include <windows.h>
// D3D12_FEATURE_DATA_D3D12_OPTIONS9 (x64 24 / x86 24 バイト)
typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 {
BOOL MeshShaderPipelineStatsSupported;
BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex;
BOOL AtomicInt64OnTypedResourceSupported;
BOOL AtomicInt64OnGroupSharedSupported;
BOOL DerivativesInMeshAndAmplificationShadersSupported;
D3D12_WAVE_MMA_TIER WaveMMATier;
} D3D12_FEATURE_DATA_D3D12_OPTIONS9;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_FEATURE_DATA_D3D12_OPTIONS9
{
[MarshalAs(UnmanagedType.Bool)] public bool MeshShaderPipelineStatsSupported;
[MarshalAs(UnmanagedType.Bool)] public bool MeshShaderSupportsFullRangeRenderTargetArrayIndex;
[MarshalAs(UnmanagedType.Bool)] public bool AtomicInt64OnTypedResourceSupported;
[MarshalAs(UnmanagedType.Bool)] public bool AtomicInt64OnGroupSharedSupported;
[MarshalAs(UnmanagedType.Bool)] public bool DerivativesInMeshAndAmplificationShadersSupported;
public int WaveMMATier;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_FEATURE_DATA_D3D12_OPTIONS9
<MarshalAs(UnmanagedType.Bool)> Public MeshShaderPipelineStatsSupported As Boolean
<MarshalAs(UnmanagedType.Bool)> Public MeshShaderSupportsFullRangeRenderTargetArrayIndex As Boolean
<MarshalAs(UnmanagedType.Bool)> Public AtomicInt64OnTypedResourceSupported As Boolean
<MarshalAs(UnmanagedType.Bool)> Public AtomicInt64OnGroupSharedSupported As Boolean
<MarshalAs(UnmanagedType.Bool)> Public DerivativesInMeshAndAmplificationShadersSupported As Boolean
Public WaveMMATier As Integer
End Structureimport ctypes
from ctypes import wintypes
class D3D12_FEATURE_DATA_D3D12_OPTIONS9(ctypes.Structure):
_fields_ = [
("MeshShaderPipelineStatsSupported", wintypes.BOOL),
("MeshShaderSupportsFullRangeRenderTargetArrayIndex", wintypes.BOOL),
("AtomicInt64OnTypedResourceSupported", wintypes.BOOL),
("AtomicInt64OnGroupSharedSupported", wintypes.BOOL),
("DerivativesInMeshAndAmplificationShadersSupported", wintypes.BOOL),
("WaveMMATier", ctypes.c_int),
]#[repr(C)]
pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 {
pub MeshShaderPipelineStatsSupported: i32,
pub MeshShaderSupportsFullRangeRenderTargetArrayIndex: i32,
pub AtomicInt64OnTypedResourceSupported: i32,
pub AtomicInt64OnGroupSharedSupported: i32,
pub DerivativesInMeshAndAmplificationShadersSupported: i32,
pub WaveMMATier: i32,
}import "golang.org/x/sys/windows"
type D3D12_FEATURE_DATA_D3D12_OPTIONS9 struct {
MeshShaderPipelineStatsSupported int32
MeshShaderSupportsFullRangeRenderTargetArrayIndex int32
AtomicInt64OnTypedResourceSupported int32
AtomicInt64OnGroupSharedSupported int32
DerivativesInMeshAndAmplificationShadersSupported int32
WaveMMATier int32
}type
D3D12_FEATURE_DATA_D3D12_OPTIONS9 = record
MeshShaderPipelineStatsSupported: BOOL;
MeshShaderSupportsFullRangeRenderTargetArrayIndex: BOOL;
AtomicInt64OnTypedResourceSupported: BOOL;
AtomicInt64OnGroupSharedSupported: BOOL;
DerivativesInMeshAndAmplificationShadersSupported: BOOL;
WaveMMATier: Integer;
end;const D3D12_FEATURE_DATA_D3D12_OPTIONS9 = extern struct {
MeshShaderPipelineStatsSupported: i32,
MeshShaderSupportsFullRangeRenderTargetArrayIndex: i32,
AtomicInt64OnTypedResourceSupported: i32,
AtomicInt64OnGroupSharedSupported: i32,
DerivativesInMeshAndAmplificationShadersSupported: i32,
WaveMMATier: i32,
};type
D3D12_FEATURE_DATA_D3D12_OPTIONS9 {.bycopy.} = object
MeshShaderPipelineStatsSupported: int32
MeshShaderSupportsFullRangeRenderTargetArrayIndex: int32
AtomicInt64OnTypedResourceSupported: int32
AtomicInt64OnGroupSharedSupported: int32
DerivativesInMeshAndAmplificationShadersSupported: int32
WaveMMATier: int32struct D3D12_FEATURE_DATA_D3D12_OPTIONS9
{
int MeshShaderPipelineStatsSupported;
int MeshShaderSupportsFullRangeRenderTargetArrayIndex;
int AtomicInt64OnTypedResourceSupported;
int AtomicInt64OnGroupSharedSupported;
int DerivativesInMeshAndAmplificationShadersSupported;
int WaveMMATier;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; D3D12_FEATURE_DATA_D3D12_OPTIONS9 サイズ: 24 バイト(x64)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; MeshShaderPipelineStatsSupported : BOOL (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; MeshShaderSupportsFullRangeRenderTargetArrayIndex : BOOL (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; AtomicInt64OnTypedResourceSupported : BOOL (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; AtomicInt64OnGroupSharedSupported : BOOL (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; DerivativesInMeshAndAmplificationShadersSupported : BOOL (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; WaveMMATier : D3D12_WAVE_MMA_TIER (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D12_FEATURE_DATA_D3D12_OPTIONS9
#field bool MeshShaderPipelineStatsSupported
#field bool MeshShaderSupportsFullRangeRenderTargetArrayIndex
#field bool AtomicInt64OnTypedResourceSupported
#field bool AtomicInt64OnGroupSharedSupported
#field bool DerivativesInMeshAndAmplificationShadersSupported
#field int WaveMMATier
#endstruct
stdim st, D3D12_FEATURE_DATA_D3D12_OPTIONS9 ; NSTRUCT 変数を確保
st->MeshShaderPipelineStatsSupported = 100
mes "MeshShaderPipelineStatsSupported=" + st->MeshShaderPipelineStatsSupported