Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64063

Qt3D: 'texture2D' : no matching overloaded function found. Materials C++ Example crashes on startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 5.10.0 Beta 2, 5.10.0 Beta 3, 5.10.0 Beta 4
    • Qt3D
    • None

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load

      QOpenGLShader::compile(Fragment): ERROR: 3:22: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:22: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:22: 'texture2D' : function is not known

      ERROR: 3:21: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

      ERROR: 3:37: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:37: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:37: 'texture2D' : function is not known

      ERROR: 3:36: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

      ERROR: 3:38: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:38: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:38: 'texture2D' : function is not known

      ERROR: 3:37: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

       

          • Problematic Fragment shader source code ***

      #version 140

      #define lowp

      #define mediump

      #define highp

      #line 1

       

      in vec3 worldPosition;

      uniform vec3 eyePosition;

      in vec3 worldNormal;

      in vec4 worldTangent;

      in vec2 texCoord;

      uniform vec4 ka;

      uniform sampler2D diffuseTexture;

      uniform sampler2D specularTexture;

      uniform float shininess;

      /****************************************************************************

      **

        • Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).

      **

        • This file is part of the Qt3D module of the Qt Toolkit.

      **

        • $QT_BEGIN_LICENSE:BSD$
        • Commercial License Usage
        • Licensees holding valid commercial Qt licenses may use this file in
        • accordance with the commercial license agreement provided with the
        • Software or, alternatively, in accordance with the terms contained in
        • a written agreement between you and The Qt Company. For licensing terms
        • information use the contact ‘.\è|

      QOpenGLShader::compile(Fragment): ERROR: 3:24: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:24: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:24: 'texture2D' : function is not known

      ERROR: 3:23: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

       

          • Problematic Fragment shader source code ***

      #version 140

      #define lowp

      #define mediump

      #define highp

      #line 1

       

      in vec3 worldPosition;

      uniform vec3 eyePosition;

      in vec3 worldNormal;

      in vec2 texCoord;

      uniform vec4 ka;

      uniform sampler2D diffuseTexture;

      uniform vec4 ks;

      uniform float shininess;

      /****************************************************************************

      **

        • Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).

      **

        • This file is part of the Qt3D module of the Qt Toolkit.

      **

        • $QT_BEGIN_LICENSE:BSD$
        • Commercial License Usage
        • Licensees holding valid commercial Qt licenses may use this file in
        • accordance with the commercial license agreement provided with the
        • Software or, alternatively, in accordance with the terms contained in
        • a written agreement between you and The Qt Company. For licensing terms

      **‘.\è|

      QOpenGLShader::compile(Fragment): ERROR: 3:22: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:22: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:22: 'texture2D' : function is not known

      ERROR: 3:21: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

      ERROR: 3:37: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:37: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:37: 'texture2D' : function is not known

      ERROR: 3:36: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

      ERROR: 3:38: 'function' : is removed in Forward Compatible context texture2D

      ERROR: 3:38: 'texture2D' : no matching overloaded function found (using implicit conversion)

      ERROR: 3:38: 'texture2D' : function is not known

      ERROR: 3:37: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

       

          • Problematic Fragment shader source code ***

      #version 140

      #define lowp

      #define mediump

      #define highp

      #line 1

       

      in vec3 worldPosition;

      uniform vec3 eyePosition;

      in vec3 worldNormal;

      in vec4 worldTangent;

      in vec2 texCoord;

      uniform vec4 ka;

      uniform sampler2D diffuseTexture;

      uniform sampler2D specularTexture;

      uniform float shininess;

      /****************************************************************************

      **

        • Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).

      **

        • This file is part of the Qt3D module of the Qt Toolkit.

      **

        • $QT_BEGIN_LICENSE:BSD$
        • Commercial License Usage
        • Licensees holding valid commercial Qt licenses may use this file in
        • accordance with the commercial license agreement provided with the
        • Software or, alternatively, in accordance with the terms contained in
        • a written agreement between you and The Qt Company. For licensing terms
        • information use the contact ‘.\è|

      ASSERT: "!m_programHash.contains(dna)" in file materialsystem\shadercache.cpp, line 87

      Invalid parameter passed to C runtime function.

      Invalid parameter passed to C runtime function.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            seanharmer Sean Harmer
            zinger Dmitry Felzinger
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes