#![allow(unused)]
use crate::lexer::PtxToken;
use crate::unparser::{PtxUnparser, common::*};
pub mod section_0 {
use super::*;
use crate::r#type::instruction::txq::section_0::*;
impl PtxUnparser for TxqTqueryB32 {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
push_opcode(tokens, "txq");
match &self.tquery {
Tquery::ChannelDataType => {
push_directive(tokens, "channel_data_type");
}
Tquery::NormalizedCoords => {
push_directive(tokens, "normalized_coords");
}
Tquery::NumMipmapLevels => {
push_directive(tokens, "num_mipmap_levels");
}
Tquery::ChannelOrder => {
push_directive(tokens, "channel_order");
}
Tquery::NumSamples => {
push_directive(tokens, "num_samples");
}
Tquery::ArraySize => {
push_directive(tokens, "array_size");
}
Tquery::Height => {
push_directive(tokens, "height");
}
Tquery::Width => {
push_directive(tokens, "width");
}
Tquery::Depth => {
push_directive(tokens, "depth");
}
}
push_directive(tokens, "b32");
self.d.unparse_tokens(tokens);
tokens.push(PtxToken::Comma);
self.a.unparse_tokens(tokens);
tokens.push(PtxToken::Semicolon);
}
}
impl PtxUnparser for TxqLevelTlqueryB32 {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
push_opcode(tokens, "txq");
push_directive(tokens, "level");
match &self.tlquery {
Tlquery::Height => {
push_directive(tokens, "height");
}
Tlquery::Width => {
push_directive(tokens, "width");
}
Tlquery::Depth => {
push_directive(tokens, "depth");
}
}
push_directive(tokens, "b32");
self.d.unparse_tokens(tokens);
tokens.push(PtxToken::Comma);
self.a.unparse_tokens(tokens);
tokens.push(PtxToken::Comma);
self.lod.unparse_tokens(tokens);
tokens.push(PtxToken::Semicolon);
}
}
impl PtxUnparser for TxqSqueryB32 {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
push_opcode(tokens, "txq");
match &self.squery {
Squery::ForceUnnormalizedCoords => {
push_directive(tokens, "force_unnormalized_coords");
}
Squery::FilterMode => {
push_directive(tokens, "filter_mode");
}
Squery::AddrMode0 => {
push_directive(tokens, "addr_mode_0");
}
Squery::AddrMode1 => {
push_token_from_str(tokens, "addr_mode_1");
}
Squery::AddrMode2 => {
push_token_from_str(tokens, "addr_mode_2");
}
}
push_directive(tokens, "b32");
self.d.unparse_tokens(tokens);
tokens.push(PtxToken::Comma);
self.a.unparse_tokens(tokens);
tokens.push(PtxToken::Semicolon);
}
}
}