Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2018-12-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Then the final program cannot draw a normal image.

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Texture image binding method and device and readable storage medium
  • Texture image binding method and device and readable storage medium
  • Texture image binding method and device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0043] Please refer to figure 1 , the first embodiment of the present invention provides a texture image binding method, applied to the Direct3D11 software platform, the texture image binding method includes the following steps:

[0044] S101: Determine the first texture of the Texture2D type in the shader script based on the high-level shader language HLSL, obtain the name of the first texture, and determine the correspondence between the first texture based on the correspondence between the texture name and the register index the first register index of ;

[0045] S102: Based on the object-oriented programming language C++, create a second texture of type ID3D11Texture2D corresponding to the first texture, and create a texture view corresponding to the second texture;

[0046] S103: Bind the first texture and the second texture based on the register index of the first texture and the texture view.

[0047] Wherein, step S101 is specifically implemented as: based on the fir...

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

PUM

No PUM Login to View More

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.

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/30G06F8/34G06F8/41
CPCG06F8/315G06F8/34G06F8/41
Inventor 杨亮陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products