MCPcopy Create free account
hub / github.com/Kitware/VTK / DoGPURender

Method DoGPURender

Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx:3899–3924  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3897
3898//------------------------------------------------------------------------------
3899void vtkOpenGLGPUVolumeRayCastMapper::DoGPURender(vtkRenderer* ren, vtkOpenGLCamera* cam,
3900 vtkShaderProgram* prog, vtkOpenGLShaderProperty* shaderProperty)
3901{
3902 if (!prog)
3903 {
3904 return;
3905 }
3906
3907 // Upload the value of user-defined uniforms in the program
3908 auto vu = static_cast<vtkOpenGLUniforms*>(shaderProperty->GetVertexCustomUniforms());
3909 vu->SetUniforms(prog);
3910 auto fu = static_cast<vtkOpenGLUniforms*>(shaderProperty->GetFragmentCustomUniforms());
3911 fu->SetUniforms(prog);
3912 auto gu = static_cast<vtkOpenGLUniforms*>(shaderProperty->GetGeometryCustomUniforms());
3913 gu->SetUniforms(prog);
3914
3915 this->SetShaderParametersRenderPass();
3916 if (!this->Impl->MultiVolume)
3917 {
3918 this->Impl->RenderSingleInput(ren, cam, prog);
3919 }
3920 else
3921 {
3922 this->Impl->RenderMultipleInputs(ren, cam, prog);
3923 }
3924}
3925
3926//------------------------------------------------------------------------------
3927void vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::RenderMultipleInputs(

Callers 2

GPURenderMethod · 0.95
RenderWithDepthPassMethod · 0.80

Calls 4

RenderSingleInputMethod · 0.80
RenderMultipleInputsMethod · 0.80
SetUniformsMethod · 0.45

Tested by

no test coverage detected