ID3D11ShaderReflection 인터페이스(d3d11shader.h)

셰이더 리플렉션 인터페이스는 셰이더 정보에 액세스합니다.

상속

ID3D11ShaderReflection 인터페이스는 IUnknown 인터페이스에서 상속됩니다. ID3D11ShaderReflection 에는 다음과 같은 유형의 멤버도 있습니다.

메서드

ID3D11ShaderReflection 인터페이스에는 이러한 메서드가 있습니다.

 
ID3D11ShaderReflection::GetBitwiseInstructionCount

비트 명령 수를 가져옵니다. (ID3D11ShaderReflection.GetBitwiseInstructionCount)
ID3D11ShaderReflection::GetConstantBufferByIndex

ID3D11ShaderReflection::GetConstantBufferByIndex(d3d11shader.h) 메서드는 인덱스별로 상수 버퍼를 가져옵니다.
ID3D11ShaderReflection::GetConstantBufferByName

이름으로 상수 버퍼를 가져옵니다. (ID3D11ShaderReflection.GetConstantBufferByName)
ID3D11ShaderReflection::GetConversionInstructionCount

변환 명령 수를 가져옵니다. (ID3D11ShaderReflection.GetConversionInstructionCount)
ID3D11ShaderReflection::GetDesc

셰이더 설명을 가져옵니다. (ID3D11ShaderReflection.GetDesc)
ID3D11ShaderReflection::GetGSInputPrimitive

geometry-shader input-primitive 설명을 가져옵니다. (ID3D11ShaderReflection.GetGSInputPrimitive)
ID3D11ShaderReflection::GetInputParameterDesc

셰이더에 대한 입력 매개 변수 설명을 가져옵니다. (ID3D11ShaderReflection.GetInputParameterDesc)
ID3D11ShaderReflection::GetMinFeatureLevel

최소 기능 수준을 가져옵니다. (ID3D11ShaderReflection.GetMinFeatureLevel)
ID3D11ShaderReflection::GetMovcInstructionCount

Movc 명령 수를 가져옵니다. (ID3D11ShaderReflection.GetMovcInstructionCount)
ID3D11ShaderReflection::GetMovInstructionCount

Mov 명령 수를 가져옵니다. (ID3D11ShaderReflection.GetMovInstructionCount)
ID3D11ShaderReflection::GetNumInterfaceSlots

셰이더의 인터페이스 슬롯 수를 가져옵니다. (ID3D11ShaderReflection.GetNumInterfaceSlots)
ID3D11ShaderReflection::GetOutputParameterDesc

셰이더에 대한 출력 매개 변수 설명을 가져옵니다. (ID3D11ShaderReflection.GetOutputParameterDesc)
ID3D11ShaderReflection::GetPatchConstantParameterDesc

셰이더에 대한 패치 상수 매개 변수 설명을 가져옵니다.
ID3D11ShaderReflection::GetRequiresFlags

셰이더의 요구 사항을 나타내는 플래그 그룹을 가져옵니다. (ID3D11ShaderReflection.GetRequiresFlags)
ID3D11ShaderReflection::GetResourceBindingDesc

리소스가 셰이더에 바인딩되는 방법에 대한 설명을 가져옵니다. (ID3D11ShaderReflection.GetResourceBindingDesc)
ID3D11ShaderReflection::GetResourceBindingDescByName

리소스가 셰이더에 바인딩되는 방법에 대한 설명을 가져옵니다. (ID3D11ShaderReflection.GetResourceBindingDescByName)
ID3D11ShaderReflection::GetThreadGroupSize

셰이더 스레드 그룹 그리드의 X, Y 및 Z 차원의 크기(스레드 단위)를 검색합니다. (ID3D11ShaderReflection.GetThreadGroupSize)
ID3D11ShaderReflection::GetVariableByName

이름으로 변수를 가져옵니다. (ID3D11ShaderReflection.GetVariableByName)
ID3D11ShaderReflection::IsSampleFrequencyShader

셰이더가 샘플 주파수 셰이더인지 여부를 나타냅니다. (ID3D11ShaderReflection.IsSampleFrequencyShader)

설명

D3DReflect를 사용하여 셰이더에 대해 ID3D11ShaderReflection 인터페이스를 검색할 수 있습니다. 다음 코드는 셰이더에서 ID3D11ShaderReflection 을 검색하는 것을 보여 줍니다.

pd3dDevice->CreatePixelShader( pPixelShaderBuffer->GetBufferPointer(),
                               pPixelShaderBuffer->GetBufferSize(), g_pPSClassLinkage, &g_pPixelShader );

ID3D11ShaderReflection* pReflector = NULL; 
D3DReflect( pPixelShaderBuffer->GetBufferPointer(), pPixelShaderBuffer->GetBufferSize(), 
            IID_ID3D11ShaderReflection, (void**) &pReflector);

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 7 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2008 R2 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 d3d11shader.h

추가 정보

IUnknown

셰이더 인터페이스