Texture image binding method and device and readable storage medium

A texture image and texture view technology, applied in the electronic field, can solve problems such as the inability to draw normal images, and achieve a simple and efficient binding method
CN108958718AActive Publication Date: 2018-12-07WUHAN DOUYU NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
WUHAN DOUYU NETWORK TECH CO LTD
Publication Date
2018-12-07

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a texture image binding method and device and a readable storage medium. The method for providing simple and accurate binding of a texture image, applied to a Direct3D11 software platform, includes determining a first texture of Texture2D type in shader script based on high-order shader language HLSL, obtaining a name of the first texture, and determining a first register index corresponding to the first texture based on a correspondence relationship between the texture name and the register index; creating a second texture of type ID3D11Texture2D corresponding to the first texture and creating a texture view corresponding to the second texture based on an object-oriented programming language C + +; binding the first texture and the second texture based on a registerindex of the first texture and the texture view.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of electronic technology, in particular to a texture image binding method, device and readable storage medium. Background technique

[0002] Direct3D (abbreviation: D3D) is a set of 3D graphics programming interfaces developed by Microsoft Corporation on the Microsoft Windows operating system. In Direct3D11 in Direct3D, in order to display an image, it must be displayed in the form of ID3D11Texture2D, and in Direct3D11, in addition to writing C++ code, you must also write a high-level shader language HLSL (High Level Shader Language) shader scripts. In this script, use a Texture2D type texture corresponding to the ID3D11Texture2D texture in the C++ code. In the C++ code, a texture is set to the specified texture register through related functions, and then in the HLSL shader script, the texture is processed and finally displayed in the computer program.

[0003] In Direct3D11, usually call the device contex...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More