it probably wants you to use this syntax: ```cpp Texture::Texture(ID3D11Texture2D* texture, ID3D11Sh

it probably wants you to use this syntax:
Texture::Texture(ID3D11Texture2D* texture, ID3D11ShaderResourceView* resource, /* ??? */ size)
: _texture(texture)
, _resource(resource)
, _size(size)
{
}
Texture::Texture(ID3D11Texture2D* texture, ID3D11ShaderResourceView* resource, /* ??? */ size)
: _texture(texture)
, _resource(resource)
, _size(size)
{
}
5 Replies
Aqua
Aqua2y ago
oh yeah that syntax i forget that exists probably won't use it though unless there's some major advantage to it, it looks kinda ugly (and looks like it will become a mess if you have a lot of parameters)
TechPizza
TechPizza2y ago
love how you refer to it as "that" syntax ferrisWheeze
Aqua
Aqua2y ago
yeah clion keeps trying to make me use it lmao
Furball
Furball2y ago
im indifferent to both although I don't explicitly do it unless clang-tidy suggests it and does it automatically
Aqua
Aqua2y ago
keep meaning to try clion nova, i really hope it has support for HLSL seems like a bit of an oversight in regular clion is there a way to tell clion to stop attempting to highlight hlsl files at all i can't seem to get it to it's got an association with text files, but its still trying to problem is its introducing more problems than it thinks it is solving actually probably easier to use notepad++ here vscode was even worse lol ah this works better no syntax highlighting but its not like clion was helping much... and at least this one isn't doing strange shit while typing

Did you find this page helpful?