tgtAssert(repRT!=0,"DataHandle must be of type ImageData having an ImageRepresentationRenderTarget inside - otherwise you're not allowed to call this method!");
// get the ImageData object (either directly or from the RenderData)
tgtAssert(parent->getSize().z==1,"RenderTargets are only two-dimensional, expected parent image size.z == 1.");
tgtAssert(colorTexture!=0,"Color texture must not be 0.");
tgtAssert(parent->getSize()==colorTexture->getSize(),"Texture size must match parent image size");
tgtAssert(parent->getDimensionality()==colorTexture->getDimensionality(),"Texture dimensionality must match parent image dimensionality");
tgtAssert(depthTexture==0||parent->getSize()==depthTexture->getSize(),"Texture size must match parent image size");
tgtAssert(depthTexture==0||parent->getDimensionality()==depthTexture->getDimensionality(),"Texture dimensionality must match parent image dimensionality");