estructura de CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT

Estructura auxiliar con plantilla utilizada para encapsular pares de datos de subobjeto y subobjeto como un único objeto adecuado para una descripción de flujo.

Sintaxis

struct CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT {
                                          CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT;
                                          CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const &i);
  CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT operator=(InnerStructType const& i);
                                          operator InnerStructType() const;
};

Miembros

CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT

Crea una nueva instancia sin inicializar de un CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT.

CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const &i)

Crea una nueva instancia de plantilla de CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT, inicializada con un tipo de subobjeto de D3D12_PIPELINE_STATE_SUBOBJECT_TYPE y datos de subobjeto copiados de i. Tanto el tipo de subobjeto como el tipo de datos de subobjeto se proporcionan como parámetros de plantilla, Type y InnerStructType, respectivamente. Para obtener más información, vea comentarios a continuación.

operator=(InnerStructType const& i)

Operador copy-assignment.

operator InnerStructType() const

Conversión implícita al tipo de datos de subobjeto proporcionado por el parámetro de plantilla InnerStructType .

Observaciones

CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT es una plantilla definida de la siguiente manera:

template <typename InnerStructType, D3D12_PIPELINE_STATE_SUBOBJECT_TYPE Type, typename DefaultArg = InnerStructType>
class alignas(void*) CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT
{
private:
    D3D12_PIPELINE_STATE_SUBOBJECT_TYPE _Type;
    InnerStructType _Inner;
public:
    CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT() : _Type(Type), _Inner(DefaultArg()) {}
    CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const& i) : _Type(Type), _Inner(i) {}
    CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT& operator=(InnerStructType const& i) { _Inner = i; return *this; }
    operator InnerStructType() const { return _Inner; }
};  
          

El parámetro de plantilla InnerStructType especifica el tipo de datos de subobjeto; es decir, los detalles del subobjeto que se van a codificar en una secuencia. El parámetro template Type especifica el tipo de subobjeto; es decir, el tipo de la estructura especificada por el parámetro de plantilla InnerStructType. El parámetro de plantilla DefaultArg especifica un valor opcional al que se inicializarán los datos del subobjeto cuando se construya de forma predeterminada una instancia de la instancia de plantilla correspondiente; por ejemplo, para construir de forma predeterminada un CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC inicializado con valores predeterminados comunes de estado de mezcla mediante CD3DX12_DEFAULT.

Estas son las instancias de plantilla que se definen:

Las estructuras CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC, CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL, CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 y CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER se definen para inicializar sus datos de subobjeto con valores predeterminados comunes mediante CD3DX12_DEFAULT.

Requisitos

Requisito Value
Encabezado
D3dx12.h

Vea también

Estructuras auxiliares de D3D12

D3D12_PIPELINE_STATE_SUBOBJECT_TYPE