Home | History | Annotate | Download | only in opengl

Lines Matching refs:src

68 void texImage2D (const RenderContext& context, deUint32 target, int level, deUint32 internalFormat, const tcu::ConstPixelBufferAccess& src)
72 TCU_CHECK_INTERNAL(src.getDepth() == 1);
73 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
75 int width = src.getWidth();
76 int height = src.getHeight();
77 TransferFormat format = getTransferFormat(src.getFormat());
79 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat()));
80 gl.texImage2D(target, level, internalFormat, width, height, 0, format.format, format.dataType, src.getDataPtr());
87 void texImage3D (const RenderContext& context, deUint32 target, int level, deUint32 internalFormat, const tcu::ConstPixelBufferAccess& src)
91 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
92 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight());
94 int width = src.getWidth();
95 int height = src.getHeight();
96 int depth = src.getDepth();
97 TransferFormat format = getTransferFormat(src.getFormat());
99 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat()));
100 gl.texImage3D(target, level, internalFormat, width, height, depth, 0, format.format, format.dataType, src.getDataPtr());
107 void texSubImage2D (const RenderContext& context, deUint32 target, int level, int x, int y, const tcu::ConstPixelBufferAccess& src)
111 TCU_CHECK_INTERNAL(src.getDepth() == 1);
112 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
114 int width = src.getWidth();
115 int height = src.getHeight();
116 TransferFormat format = getTransferFormat(src.getFormat());
118 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat()));
119 gl.texSubImage2D(target, level, x, y, width, height, format.format, format.dataType, src.getDataPtr());
126 void texSubImage3D (const RenderContext& context, deUint32 target, int level, int x, int y, int z, const tcu::ConstPixelBufferAccess& src)
130 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
131 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight());
133 int width = src.getWidth();
134 int height = src.getHeight();
135 int depth = src.getDepth();
136 TransferFormat format = getTransferFormat(src.getFormat());
138 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat()));
139 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format.format, format.dataType, src.getDataPtr());