Share via


struttura CD3DX12_PIPELINE_STATE_STREAM2

Struttura helper per la creazione e l'uso degli stati di grafica e pipeline di calcolo tramite un'interfaccia combinata. Vedere D3D12_GRAPHICS_PIPELINE_STATE_DESC e D3D12_COMPUTE_PIPELINE_STATE_DESC.

CD3DX12_PIPELINE_STATE_STREAM2 supporta la build del sistema operativo 19041+ (dove è presente una pipeline di mesh shader).

Sintassi

struct CD3DX12_PIPELINE_STATE_STREAM2
{
    CD3DX12_PIPELINE_STATE_STREAM2();
    CD3DX12_PIPELINE_STATE_STREAM2(const D3D12_GRAPHICS_PIPELINE_STATE_DESC& Desc) noexcept;
    CD3DX12_PIPELINE_STATE_STREAM2(const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC& Desc) noexcept;
    CD3DX12_PIPELINE_STATE_STREAM2(const D3D12_COMPUTE_PIPELINE_STATE_DESC& Desc) noexcept;
    CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags;
    CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask;
    CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature;
    CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout;
    CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue;
    CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType;
    CD3DX12_PIPELINE_STATE_STREAM_VS VS;
    CD3DX12_PIPELINE_STATE_STREAM_GS GS;
    CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput;
    CD3DX12_PIPELINE_STATE_STREAM_HS HS;
    CD3DX12_PIPELINE_STATE_STREAM_DS DS;
    CD3DX12_PIPELINE_STATE_STREAM_PS PS;
    CD3DX12_PIPELINE_STATE_STREAM_AS AS;
    CD3DX12_PIPELINE_STATE_STREAM_MS MS;
    CD3DX12_PIPELINE_STATE_STREAM_CS CS;
    CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState;
    CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 DepthStencilState;
    CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat;
    CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState;
    CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats;
    CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc;
    CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask;
    CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO;
    CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc;
    D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() const noexcept;
    D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() const noexcept;
};

Members

CD3DX12_PIPELINE_STATE_STREAM2

Costruttore predefinito. Crea una nuova istanza non inizializzata di un CD3DX12_PIPELINE_STATE_STREAM2.

CD3DX12_PIPELINE_STATE_STREAM2(const D3D12_GRAPHICS_PIPELINE_STATE_DESC&)

Costruttore che crea una nuova istanza di un CD3DX12_PIPELINE_STATE_STREAM2 inizializzato con il contenuto di una struttura D3D12_GRAPHICS_PIPELINE_STATE_DESC .

Sarà quindi necessario impostare manualmente mesh e shader di amplificazione, poiché non hanno rappresentazione in D3D12_GRAPHICS_PIPELINE_STATE_DESC.

CD3DX12_PIPELINE_STATE_STREAM2(const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC&)

Costruttore che crea una nuova istanza di un CD3DX12_PIPELINE_STATE_STREAM2 inizializzato con il contenuto di una struttura di D3DX12_MESH_SHADER_PIPELINE_STATE_DESC .

CD3DX12_PIPELINE_STATE_STREAM2(const D3D12_COMPUTE_PIPELINE_STATE_DESC&)

Costruttore che crea una nuova istanza di un CD3DX12_PIPELINE_STATE_STREAM2 inizializzato con il contenuto di una struttura D3D12_COMPUTE_PIPELINE_STATE_DESC .

Flags

Tipo: CD3DX12_PIPELINE_STATE_STREAM_FLAGS

Flag (ad esempio, per indicare che lo stato della pipeline deve essere compilato con informazioni aggiuntive per facilitare il debug).

NodeMask

Tipo: CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK

Descrive la maschera del nodo dello stato della pipeline, usata per identificare i nodi (adattatori fisici del dispositivo) a cui si applica il psO negli scenari multi-adapter; ogni bit nella maschera corrisponde a un singolo nodo. Per gli scenari a scheda singola, usare 0.

pRootSignature

Tipo: CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE

Descrive la firma radice.

InputLayout

Tipo: CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT

Descrive il formato del buffer di input per la fase dell'assembler di input

IBStripCutValue

Tipo: CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE

Descrive il valore dell'indice speciale del buffer di input che indica un taglio (interruzione) quando si usa la topologia a strip triangolo.

PrimitiveTopologyType

Tipo: CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY

Descrive la topologia primitiva e il relativo ordine.

VS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_VS

Descrive il vertex shader.

GS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_GS

Descrive lo shader geometry.

StreamOutput

Tipo: CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT

Descrive il buffer di output di streaming.

HS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_HS

Descrive lo shader dello scafo.

DS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_DS

Descrive lo shader di dominio.

PS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_PS

Descrive lo shader pixel.

AS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_AS

Descrive lo shader di amplificazione.

MS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_MS

Descrive lo shader mesh.

CS

Tipo: CD3DX12_PIPELINE_STATE_STREAM_CS

Descrive lo shader di calcolo.

BlendState

Tipo: CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC

Descrive lo stato di blend.

DepthStencilState

Tipo: CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1

Descrive lo stato di profondità-stencil.

DSVFormat

Tipo: CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT

Descrive il formato profondità-stencil.

RasterizerState

Tipo: CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER

Descrive lo stato del rasterizer.

RTVFormats

Tipo: CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS

Descrive i formati di destinazione del rendering.

SampleDesc

Tipo: CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC

Descrive il conteggio e la qualità degli esempi.

SampleMask

Tipo: CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK

Descrive la maschera di esempio usata con lo stato di blend.

CachedPSO

Tipo: CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO

Descrive un PSO memorizzato nella cache.

ViewInstancingDesc

Tipo: CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING

Descrive una configurazione di visualizzazione instancing.

GraphicsDescV0

Restituisce D3D12_GRAPHICS_PIPELINE_STATE_DESC.

restituisce il contenuto dell'oggetto CD3DX12_PIPELINE_STATE_STREAM2 come struttura D3D12_GRAPHICS_PIPELINE_STATE_DESC in base al valore. D3D12_GRAPHICS_PIPELINE_STATE_DESC non include il membro CS , in modo che il valore venga perso nella conversione.

ComputeDescV0

Restituisce D3D12_COMPUTE_PIPELINE_STATE_DESC.

restituisce il contenuto dell'oggetto CD3DX12_PIPELINE_STATE_STREAM2 come struttura D3D12_COMPUTE_PIPELINE_STATE_DESC per valore. D3D12_COMPUTE_PIPELINE_STATE_DESC non include i membri InputLayout, IBStripCutValue, PrimitiveTopologyType, VS, GS, StreamOutput, HS, DS, PS, BlendState, DepthStencilState, DSVFormat, RasterizerState, NumRootSignature, RTVFormats, SampleDesc e SampleMask, in modo che questi valori siano persi nell'oggetto Conversione.

Requisiti

Requisito Valore
Intestazione D3dx12.h

Vedi anche