ホーム › Graphics.Direct3D12 › D3D12_FEATURE_DATA_D3D12_OPTIONS19
D3D12_FEATURE_DATA_D3D12_OPTIONS19
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| MismatchingOutputDimensionsSupported | BOOL | 4 | +0 | +0 | 出力次元の不一致に対応するか。 |
| SupportedSampleCountsWithNoOutputs | DWORD | 4 | +4 | +4 | 出力なし描画でサポートされるサンプル数のビットマスク。 |
| PointSamplingAddressesNeverRoundUp | BOOL | 4 | +8 | +8 | ポイントサンプリングのアドレスが切り上げられないか。 |
| RasterizerDesc2Supported | BOOL | 4 | +12 | +12 | D3D12_RASTERIZER_DESC2に対応するか。 |
| NarrowQuadrilateralLinesSupported | BOOL | 4 | +16 | +16 | 細い四辺形ラインに対応するか。 |
| AnisoFilterWithPointMipSupported | BOOL | 4 | +20 | +20 | ポイントミップ併用の異方性フィルタに対応するか。 |
| MaxSamplerDescriptorHeapSize | DWORD | 4 | +24 | +24 | サンプラーディスクリプタヒープの最大サイズ。 |
| MaxSamplerDescriptorHeapSizeWithStaticSamplers | DWORD | 4 | +28 | +28 | 静的サンプラー併用時のサンプラーヒープ最大サイズ。 |
| MaxViewDescriptorHeapSize | DWORD | 4 | +32 | +32 | ビューディスクリプタヒープの最大サイズ。 |
| ComputeOnlyCustomHeapSupported | BOOL | 4 | +36 | +36 | コンピュート専用カスタムヒープに対応するか。 |
各言語での定義
#include <windows.h>
// D3D12_FEATURE_DATA_D3D12_OPTIONS19 (x64 40 / x86 40 バイト)
typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19 {
BOOL MismatchingOutputDimensionsSupported;
DWORD SupportedSampleCountsWithNoOutputs;
BOOL PointSamplingAddressesNeverRoundUp;
BOOL RasterizerDesc2Supported;
BOOL NarrowQuadrilateralLinesSupported;
BOOL AnisoFilterWithPointMipSupported;
DWORD MaxSamplerDescriptorHeapSize;
DWORD MaxSamplerDescriptorHeapSizeWithStaticSamplers;
DWORD MaxViewDescriptorHeapSize;
BOOL ComputeOnlyCustomHeapSupported;
} D3D12_FEATURE_DATA_D3D12_OPTIONS19;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_FEATURE_DATA_D3D12_OPTIONS19
{
[MarshalAs(UnmanagedType.Bool)] public bool MismatchingOutputDimensionsSupported;
public uint SupportedSampleCountsWithNoOutputs;
[MarshalAs(UnmanagedType.Bool)] public bool PointSamplingAddressesNeverRoundUp;
[MarshalAs(UnmanagedType.Bool)] public bool RasterizerDesc2Supported;
[MarshalAs(UnmanagedType.Bool)] public bool NarrowQuadrilateralLinesSupported;
[MarshalAs(UnmanagedType.Bool)] public bool AnisoFilterWithPointMipSupported;
public uint MaxSamplerDescriptorHeapSize;
public uint MaxSamplerDescriptorHeapSizeWithStaticSamplers;
public uint MaxViewDescriptorHeapSize;
[MarshalAs(UnmanagedType.Bool)] public bool ComputeOnlyCustomHeapSupported;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_FEATURE_DATA_D3D12_OPTIONS19
<MarshalAs(UnmanagedType.Bool)> Public MismatchingOutputDimensionsSupported As Boolean
Public SupportedSampleCountsWithNoOutputs As UInteger
<MarshalAs(UnmanagedType.Bool)> Public PointSamplingAddressesNeverRoundUp As Boolean
<MarshalAs(UnmanagedType.Bool)> Public RasterizerDesc2Supported As Boolean
<MarshalAs(UnmanagedType.Bool)> Public NarrowQuadrilateralLinesSupported As Boolean
<MarshalAs(UnmanagedType.Bool)> Public AnisoFilterWithPointMipSupported As Boolean
Public MaxSamplerDescriptorHeapSize As UInteger
Public MaxSamplerDescriptorHeapSizeWithStaticSamplers As UInteger
Public MaxViewDescriptorHeapSize As UInteger
<MarshalAs(UnmanagedType.Bool)> Public ComputeOnlyCustomHeapSupported As Boolean
End Structureimport ctypes
from ctypes import wintypes
class D3D12_FEATURE_DATA_D3D12_OPTIONS19(ctypes.Structure):
_fields_ = [
("MismatchingOutputDimensionsSupported", wintypes.BOOL),
("SupportedSampleCountsWithNoOutputs", wintypes.DWORD),
("PointSamplingAddressesNeverRoundUp", wintypes.BOOL),
("RasterizerDesc2Supported", wintypes.BOOL),
("NarrowQuadrilateralLinesSupported", wintypes.BOOL),
("AnisoFilterWithPointMipSupported", wintypes.BOOL),
("MaxSamplerDescriptorHeapSize", wintypes.DWORD),
("MaxSamplerDescriptorHeapSizeWithStaticSamplers", wintypes.DWORD),
("MaxViewDescriptorHeapSize", wintypes.DWORD),
("ComputeOnlyCustomHeapSupported", wintypes.BOOL),
]#[repr(C)]
pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS19 {
pub MismatchingOutputDimensionsSupported: i32,
pub SupportedSampleCountsWithNoOutputs: u32,
pub PointSamplingAddressesNeverRoundUp: i32,
pub RasterizerDesc2Supported: i32,
pub NarrowQuadrilateralLinesSupported: i32,
pub AnisoFilterWithPointMipSupported: i32,
pub MaxSamplerDescriptorHeapSize: u32,
pub MaxSamplerDescriptorHeapSizeWithStaticSamplers: u32,
pub MaxViewDescriptorHeapSize: u32,
pub ComputeOnlyCustomHeapSupported: i32,
}import "golang.org/x/sys/windows"
type D3D12_FEATURE_DATA_D3D12_OPTIONS19 struct {
MismatchingOutputDimensionsSupported int32
SupportedSampleCountsWithNoOutputs uint32
PointSamplingAddressesNeverRoundUp int32
RasterizerDesc2Supported int32
NarrowQuadrilateralLinesSupported int32
AnisoFilterWithPointMipSupported int32
MaxSamplerDescriptorHeapSize uint32
MaxSamplerDescriptorHeapSizeWithStaticSamplers uint32
MaxViewDescriptorHeapSize uint32
ComputeOnlyCustomHeapSupported int32
}type
D3D12_FEATURE_DATA_D3D12_OPTIONS19 = record
MismatchingOutputDimensionsSupported: BOOL;
SupportedSampleCountsWithNoOutputs: DWORD;
PointSamplingAddressesNeverRoundUp: BOOL;
RasterizerDesc2Supported: BOOL;
NarrowQuadrilateralLinesSupported: BOOL;
AnisoFilterWithPointMipSupported: BOOL;
MaxSamplerDescriptorHeapSize: DWORD;
MaxSamplerDescriptorHeapSizeWithStaticSamplers: DWORD;
MaxViewDescriptorHeapSize: DWORD;
ComputeOnlyCustomHeapSupported: BOOL;
end;const D3D12_FEATURE_DATA_D3D12_OPTIONS19 = extern struct {
MismatchingOutputDimensionsSupported: i32,
SupportedSampleCountsWithNoOutputs: u32,
PointSamplingAddressesNeverRoundUp: i32,
RasterizerDesc2Supported: i32,
NarrowQuadrilateralLinesSupported: i32,
AnisoFilterWithPointMipSupported: i32,
MaxSamplerDescriptorHeapSize: u32,
MaxSamplerDescriptorHeapSizeWithStaticSamplers: u32,
MaxViewDescriptorHeapSize: u32,
ComputeOnlyCustomHeapSupported: i32,
};type
D3D12_FEATURE_DATA_D3D12_OPTIONS19 {.bycopy.} = object
MismatchingOutputDimensionsSupported: int32
SupportedSampleCountsWithNoOutputs: uint32
PointSamplingAddressesNeverRoundUp: int32
RasterizerDesc2Supported: int32
NarrowQuadrilateralLinesSupported: int32
AnisoFilterWithPointMipSupported: int32
MaxSamplerDescriptorHeapSize: uint32
MaxSamplerDescriptorHeapSizeWithStaticSamplers: uint32
MaxViewDescriptorHeapSize: uint32
ComputeOnlyCustomHeapSupported: int32struct D3D12_FEATURE_DATA_D3D12_OPTIONS19
{
int MismatchingOutputDimensionsSupported;
uint SupportedSampleCountsWithNoOutputs;
int PointSamplingAddressesNeverRoundUp;
int RasterizerDesc2Supported;
int NarrowQuadrilateralLinesSupported;
int AnisoFilterWithPointMipSupported;
uint MaxSamplerDescriptorHeapSize;
uint MaxSamplerDescriptorHeapSizeWithStaticSamplers;
uint MaxViewDescriptorHeapSize;
int ComputeOnlyCustomHeapSupported;
}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_OPTIONS19 サイズ: 40 バイト(x64)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; MismatchingOutputDimensionsSupported : BOOL (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; SupportedSampleCountsWithNoOutputs : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; PointSamplingAddressesNeverRoundUp : BOOL (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; RasterizerDesc2Supported : BOOL (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; NarrowQuadrilateralLinesSupported : BOOL (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; AnisoFilterWithPointMipSupported : BOOL (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; MaxSamplerDescriptorHeapSize : DWORD (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; MaxSamplerDescriptorHeapSizeWithStaticSamplers : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; MaxViewDescriptorHeapSize : DWORD (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; ComputeOnlyCustomHeapSupported : BOOL (+36, 4byte) st.9 = 値 / 値 = st.9 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D12_FEATURE_DATA_D3D12_OPTIONS19
#field bool MismatchingOutputDimensionsSupported
#field int SupportedSampleCountsWithNoOutputs
#field bool PointSamplingAddressesNeverRoundUp
#field bool RasterizerDesc2Supported
#field bool NarrowQuadrilateralLinesSupported
#field bool AnisoFilterWithPointMipSupported
#field int MaxSamplerDescriptorHeapSize
#field int MaxSamplerDescriptorHeapSizeWithStaticSamplers
#field int MaxViewDescriptorHeapSize
#field bool ComputeOnlyCustomHeapSupported
#endstruct
stdim st, D3D12_FEATURE_DATA_D3D12_OPTIONS19 ; NSTRUCT 変数を確保
st->MismatchingOutputDimensionsSupported = 100
mes "MismatchingOutputDimensionsSupported=" + st->MismatchingOutputDimensionsSupported