此函式會建立著色器反映物件,以擷取已編譯著色器的相關信息 -- 已被取代。 請改用 D3DReflect。
語法
HRESULT D3D10ReflectShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[out] ID3D10ShaderReflection **ppReflector
);
參數
[in] pShaderBytecode
類型: const void*
已編譯著色器的指標。
[in] BytecodeLength
類型: SIZE_T
pShaderBytecode 的長度。
[out] ppReflector
類型: ID3D10ShaderReflection**
反映介面的位址。
傳回值
類型: HRESULT
傳回值。
規格需求
| 需求 | 值 |
|---|---|
| 目標平台 | Windows |
| 標頭 | d3d10shader.h |
| 程式庫 | D3D10.lib |
| Dll | D3D10.dll |