MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / attachTexture

Method attachTexture

Common/rendercheck_gles.h:811–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809 }
810
811 void attachTexture(GLenum texTarget, GLuint texId,
812 GLenum attachment = GL_COLOR_ATTACHMENT0, int mipLevel = 0,
813 int zSlice = 0) {
814 bindRenderPath();
815 check_gl_error(__FILE__, __LINE__);
816
817 glFramebufferTexture2D(GL_FRAMEBUFFER, attachment, texTarget, texId,
818 mipLevel);
819
820 checkStatus(__FILE__, __LINE__, false);
821
822 unbindRenderPath();
823 }
824
825 bool initialize(unsigned width, unsigned height, fboConfig &rConfigFBO,
826 fboData &rActiveFBO) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected