The image data I input has already been specified with the data type and number of channels, but when I use vtkActor to input textures, I use RenderDoc to capture them, and I find that the uploaded textures are always parsed as R8G8B8A8 type. why?
auto imageData = vtkSmartPointer<vtkImageData>::New();
imageData->SetDimensions(size[0], size[1], 1);
imageData->AllocateScalars(VTK_FLOAT, 1);
auto texture= vtkSmartPointer<vtkTexture>::New();
texture->SetInputData(imageData);
bodyActor->GetProperty()->SetTexture("texture", texture);