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

Method GetFormat

Rendering/OpenGL2/vtkTextureObject.cxx:781–788  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

779
780//------------------------------------------------------------------------------
781unsigned int vtkTextureObject::GetFormat(int vtktype, int numComps, bool shaderSupportsTextureInt)
782{
783 if (!this->Format)
784 {
785 this->Format = this->GetDefaultFormat(vtktype, numComps, shaderSupportsTextureInt);
786 }
787 return this->Format;
788}
789
790//------------------------------------------------------------------------------
791unsigned int vtkTextureObject::GetDefaultFormat(

Callers 15

Create1DMethod · 0.95
Create1DFromRawMethod · 0.95
CreateTextureBufferMethod · 0.95
Create2DMethod · 0.95
Create3DMethod · 0.95
Create3DFromRawMethod · 0.95
Create2DFromRawMethod · 0.95
Create2DArrayFromRawMethod · 0.95
CreateCubeFromRawMethod · 0.95
Allocate1DMethod · 0.95
Allocate2DMethod · 0.95

Calls 1

GetDefaultFormatMethod · 0.95

Tested by

no test coverage detected