/*
 * Copyright 2010 Rico Schüller
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

import "vkd3d_d3d10shader.idl";

[
    uuid(c3457783-a846-47ce-9520-cea6f66e7447),
    object,
    local,
]
interface ID3D10ShaderReflection1 : IUnknown
{
    HRESULT GetDesc(D3D10_SHADER_DESC *desc);
    ID3D10ShaderReflectionConstantBuffer *GetConstantBufferByIndex(UINT index);
    ID3D10ShaderReflectionConstantBuffer *GetConstantBufferByName(const char *name);
    HRESULT GetResourceBindingDesc(UINT index, D3D10_SHADER_INPUT_BIND_DESC *desc);
    HRESULT GetInputParameterDesc(UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc);
    HRESULT GetOutputParameterDesc(UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc);
    ID3D10ShaderReflectionVariable *GetVariableByName(const char *name);
    HRESULT GetResourceBindingDescByName(const char *name, D3D10_SHADER_INPUT_BIND_DESC *desc);
    HRESULT GetMovInstructionCount(UINT *count);
    HRESULT GetMovcInstructionCount(UINT *count);
    HRESULT GetConversionInstructionCount(UINT *count);
    HRESULT GetBitwiseInstructionCount(UINT *count);
    HRESULT GetGSInputPrimitive(D3D_PRIMITIVE *primitive);
    HRESULT IsLevel9Shader(BOOL *level9_shader);
    HRESULT IsSampleFrequencyShader(BOOL *sample_frequency);
}
