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

Texture image binding method, 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: 2021-11-26
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, device and readable storage medium
  • Texture image binding method, device and readable storage medium
  • Texture image binding method, 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, device and readable storage medium. It is used to provide a simple and accurate method for binding texture images. The method is applied to the Direct3D11 software platform, including: determining the first texture of the Texture2D type in a shader script based on the high-level shader language HLSL, and obtaining all The name of the first texture, based on the correspondence between the texture name and the register index, determine the first register index corresponding to the first texture; based on the object-oriented programming language C++, create the ID3D11Texture2D type corresponding to the first texture Create a texture view corresponding to the second texture; bind the first texture and the second texture based on the register index 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
Patent Type & Authority Patents(China)
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